Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^6: Perlplexation - foreach shoulda Known

by JavaFan (Canon)
on Apr 14, 2012 at 01:19 UTC ( #965019=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Perlplexation - foreach shoulda Known
in thread Perlplexation - foreach shoulda Known

If you're willing to scribble away the value of $. in a variable at the beginning of the body, you might as well write:
my ($i, $j); foreach .... { ++$i; foreach .... { ++$j; } }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-07-01 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (406 votes). Check out past polls.