![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^4: How to use __DATA__ efficiently, help!by Anonyrnous Monk (Hermit) |
on Feb 09, 2011 at 20:02 UTC ( [id://887268]=note: print w/replies, xml ) | Need Help?? |
You probably meant
or just (as $_ is the default anyway)
s/// returns the number of substitutions made, so as you have it, you're appending that number to $_.
In Section
Seekers of Perl Wisdom
|
|