in reply to
regexp problem
($str) = ($str =~ /^\s*(.*?)\s*\z/)
or just
$str =~ s/^\s+//; $str =~ s/\s+\z//;
[download]
Comment on
Re: regexp problem
Select
or
Download
Code
In Section
Seekers of Perl Wisdom