in reply to
how to prevent new line added in HERE document
As
LanX
says, you could just chomp the parameter passed to sub foo.
chomp(my $code = shift);
[download]
Comment on
Re: how to prevent new line added in HERE document
Download
Code
In Section
Seekers of Perl Wisdom