|
|
| more useful options | |
| PerlMonks |
RE: Simpler Section Numbersby tye (Sage) |
| on Jul 28, 2000 at 19:32 UTC ( [id://24986]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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: which still hides side-effects inside map or: which just, well, isn't slick. :)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||