On Thu, 6 Dec 2001, Booher Timothy B 1stLt AFRL/MNAC wrote:
> For example I have 'ABCDEFGH' and I want to get the right three letters:
>
> Right('abcdefgh',3) = 'fgh'
>
> Left can be done with substring (x,0) I am sure, but what about right?
You can still use substr, just give it a starting point that is negative:
perl -e 'print substr('abcdefg', -3, 3), "\n"'
efg
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
College:
The fountains of knowledge, where everyone goes to drink.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]