[Chicago-talk] Scalar question?

Richard Reina richard at rushlogistics.com
Fri Apr 1 05:43:26 PST 2005

my $scalar = "whisky";

If this gives me the last 3 characters of the string

my $s = substr(3,3,$scalar); 

How can I get the last three letters of any string
regardless of the strings length (given that the
string will be atleast three characters long)?

Any help would be graetly appreciated.


More information about the Chicago-talk mailing list