Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Common Perl Idioms

by revdiablo (Prior)
on Jul 23, 2004 at 21:19 UTC ( #376999=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        @files = { local(@ARGV, $/) = @filenames; <> }; # missing 'do'
    
  2. or download this
        @files = do { local(@ARGV, $/) = @filenames; <> };
    
  3. or download this
        @foo{ @foo } = 0 .. @foo; # off-by-one error
    
  4. or download this
        @foo{ @foo } = 0 .. $#foo;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2023-03-28 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (67 votes). Check out past polls.

    Notices?