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

Re: Using an array element as a loop iterator

by LanX (Saint)
on Nov 08, 2013 at 00:11 UTC ( [id://1061644]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @a="a".."c";
    my @b=1..3;
    ...
    a 2 3
    a 3 4
    a b 4
    
  2. or download this
          iterator
               A special programming gizmo that keeps track of where you a
    +re in
               something that you’re trying to iterate over.  The "foreach
    +" loop
               in Perl contains an iterator; so does a hash, allowing you 
    +to each
               through it.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-20 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found