Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Anti-snippet (or, "local" considered dangerous to fools")

by jeffa (Bishop)
on Aug 06, 2003 at 17:23 UTC ( #281510=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $file_contents_as_scalar = do{local $/;<FILEHANDLE>};
    
  2. or download this
    $_->{field} = $var for @object;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://281510]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-04-21 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?