Just another Perl shrine | |
PerlMonks |
Re: Stripping characters from stringsby moen (Hermit) |
on Oct 29, 2000 at 23:15 UTC ( [id://39007]=note: print w/replies, xml ) | Need Help?? |
You could do something like
s/.$//g; This means: substitute(s/) any one character(.) counting from the end ($) with nothing (//) and at all possible matches(g).
In Section
Seekers of Perl Wisdom
|
|