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?
choroba was busy with the Pull Request Challenge
marto must set time aside for cpan things, life is just too crazy at the moment

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-01-23 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.