|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Chomp is removing the whole word instead of the newlineby tobyink (Prior) |
| on Jul 25, 2012 at 09:35 UTC ( #983591=note: print w/ replies, xml ) | Need Help?? |
|
chomp operates in-place. The return value isn't especially useful.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||