Welcome to the Monastery | |
PerlMonks |
Re: Remove newline character from start of stringby moritz (Cardinal) |
on May 10, 2010 at 12:28 UTC ( [id://839215]=note: print w/replies, xml ) | Need Help?? |
Note that chomp depends on the current value of $/. I assume here that you want to emulate that behaviour.
As a regex:
With substr:
Perl 6 - links to (nearly) everything that is Perl 6.
In Section
Seekers of Perl Wisdom
|
|