Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Keep It Simple, Stupid
 
PerlMonks  

Re: foreach only for a section of a list

by davido (Bishop)
on May 04, 2012 at 15:59 UTC ( #968948=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $idx ( 0 .. $#somewords - 1 ) {
        print " $somewords[$idx]\n";
    }
    
  2. or download this
    foreach my $core ( @somewords[ 0 .. $#somewords - 1 ] ) {
        print " $core\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2013-05-22 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (457 votes), past polls