We don't bite newbies here... much | |
PerlMonks |
Re: Printing last two charactersby FunkyMonk (Chancellor) |
on Jan 03, 2008 at 11:26 UTC ( [id://660163]=note: print w/replies, xml ) | Need Help?? |
I wouldn't use a regexp, I'd use substr:
The second argument is the start position, with negative numbers mean from the end of the string and the third argument is how many characters to extract.
In Section
Seekers of Perl Wisdom
|
|