my $day = '1ST'; my $suffix = substr($day, -2, 2, ''); print $day; # "1" print $suffix; # "ST" [download]
In reply to Re: Re: String Length by buckaduck in thread String Length by ep