Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: A few random questions from Learning Perl 3

by Paladin (Vicar)
on Jan 06, 2003 at 04:48 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://224541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-23 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found