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

Re: Perl For loops

by ikegami (Patriarch)
on Jul 03, 2007 at 21:14 UTC ( [id://624790]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array = map { STMT* EXPR } LIST;
    
  2. or download this
    my @array;
    for (LIST) {
       STMT*
       push @array, EXPR;
    }
    
  3. or download this
    my @array = grep EXPR, LIST;
    
  4. or download this
    my @array;
    for (LIST) {
    ...
          push @array, $_;
       }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found