Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Chomp is removing the whole word instead of the newlineby tobyink (Canon) |
on Jul 25, 2012 at 09:35 UTC ( [id://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
|
|