perldoc -f substr Just use a negative number for the offset, and it grabs characters from the right.
____________________ Chris Spurgeon Senior Design Technologist [EMAIL PROTECTED] ELECTRONIC INK One South Broad Street 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -----Original Message----- From: Booher Timothy B 1stLt AFRL/MNAC [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: thanks for the info on removing control m's Thanks a lot - I have set up an alias to make my life easier. I am wondering how you would use the VB equivalents of Left$ and Right$ with perl. 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? Thanks again, tim ____________________________________________________ Timothy B Booher, Lt USAF, AFRL/MNAC 101 West Eglin Blvd, Suite 339 Eglin AFB FL 32542-6810 Phone: 850-882-8302 Ext. 3360 (DSN 872-) FAX: 850-882-2201 This e-mail is intended solely for the above-mentioned recipient and it may contain confidential or privileged information. If you have received it in error, please notify us immediately and delete the e-mail. You must not copy, distribute, disclose or take any action in reliance on it. In addition, the contents of an attachment to this e-mail may contain software viruses which could damage your own computer system. While Electronic Ink, Inc. has taken every reasonable precaution to minimize this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should perform your own virus checks before opening the attachment. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]