Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

localization of $_

by modred (Pilgrim)
on Feb 27, 2001 at 23:46 UTC ( #61147=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<FILE>)
    {
    ...
    
      print "$_\n";   # here $_ has a value of undef and causes problems
    }
    
  2. or download this
    sub doSomething
    {
    ...
       # At this point in the code, $_ is undef and since $_ is
       # global...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://61147]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2023-10-04 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?