Or, just use the regexes directly ;-)
$string =~ s/^\s+//; # ltrim $string =~ s/\s+$//; # rtrim $string =~ s/^\s+|\s+$//g; # trim
Regards,
-- Hauke D
In reply to Re^2: Prototype mismatch: sub main::trim: none vs ($)
by haukex
in thread Prototype mismatch: sub main::trim: none vs ($) at mysqlDB_serial.pl line 188.
by bNathan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |