• +91 9723535972
  • info@interviewmaterial.com

Perl Interview Questions and Answers

Question - When would `local $_' in a function ruin your day?

Answer - When your caller was in the middle for a while(m//g) loop The /g state on a global variable is not protected by running local on it. That'll teach you to stop using locals. Too bad $_ can't be the target of a my() -- yet.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners