Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: Simpler Section Numbers

by tye (Sage)
on Jul 28, 2000 at 23:32 UTC ( #24986=note: print w/replies, xml ) Need Help??


in reply to Simpler Section Numbers
in thread Sorting on Section Numbers

Actually I wrote it as map first and, of course, it didn't work because s// doesn't return the modified string. Breaking the unwritten rule of grep seemed slicker than:

map {s/.../.../ge; $_}
which still hides side-effects inside map or:
map {(my $x= $_)=~s/.../.../ge; $x}
which just, well, isn't slick. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://24986]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-02-27 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (393 votes). Check out past polls.