go ahead... be a heretic | |
PerlMonks |
Re: howto strip the first char of a string?by Aristotle (Chancellor) |
on Sep 08, 2004 at 22:03 UTC ( [id://389491]=note: print w/replies, xml ) | Need Help?? |
What if the first character is a newline? :-) Don't forget the /s! As an aside, FWIW, the s/// is much less efficient than the substr solution here. Another overengineered way:
Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|