Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: 'prev' in for loop

by gjb (Vicar)
on Dec 06, 2005 at 14:28 UTC ( #514467=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      foreach my $item (@list) {
        something($item);
      }
    
  2. or download this
      for (my $i = 0; $i < @list; $i++) {
        something($list[$i]);
      }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2019-12-09 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?