Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

How do you move within an array using foreach?

by P0w3rK!d (Pilgrim)
on Oct 10, 2002 at 18:24 UTC ( [id://204265]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $line (@lines) {
    
        if ($line =~ m/\[foo\]/) {
    ...
            # everything there also
        }
    }
    
  2. or download this
    ;
    ; foo file
    ;
    ...
    d=4
    e=5
    f=6
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found