Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: How many loops are there in Perl?

by LanX (Chancellor)
on Feb 01, 2012 at 23:04 UTC ( #951312=note: print w/replies, xml ) Need Help??


in reply to Re^2: How many loops are there in Perl?
in thread How many loops are there in Perl?

as you wish :)

DB<72> (" "x10) =~ m/ (?{print $x++})/g => (" ", " ", " ", " ", " ", " ", " ", " ", " ", " ") 0123456789

I'm surprised nobody tried s///e

Cheers Rolf

update:

DB<20> $_=" "x10; s/ /print $x++/ge => 10 0123456789

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2016-09-26 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (484 votes). Check out past polls.