in reply to last character in string ?
chomp($date); # remove newlines chop($date); # remove last char $date =~ s/\s*$//; # remove trailing spaces $date = substr($date,0,(length($date)-1)); # remove last char ($date) = $date =~ m/(.*)\s*$/; # i would imagine the slowest solution
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Perl that moves.
by boo_radley (Parson) on Oct 01, 2001 at 17:15 UTC | |
by demerphq (Chancellor) on Oct 01, 2001 at 19:44 UTC | |
by Amoe (Friar) on Oct 01, 2001 at 19:26 UTC | |
by demerphq (Chancellor) on Oct 01, 2001 at 19:55 UTC |