Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: A few random questions from Learning Perl 3

by Paladin (Vicar)
on Jan 06, 2003 at 04:48 UTC ( #224541=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
    my $tempvar = somefunc();
    # do something with $tempvar
    }
    # $tempvar no longer exists here.
    
  2. or download this
    {
      local(*INPUT, $/);
    ...
      $var = <INPUT>;
    }
    # $/ is set back to it's original value here.
    
  3. or download this
    while (<FH>) {
       next if /^#/;  # Skip comments
       # now do something with $_
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://224541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2020-02-18 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (76 votes). Check out past polls.

    Notices?