Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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; } }


Comment on Re^6: Perlplexation - foreach shoulda Known
Download Code

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 examining the Monastery: (6)
As of 2014-07-10 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls