hi,
is there a way to convert these three statements into one?
$here =~ s|^\s+||gs;
$here =~ s|\s+$||gs;
$here =~ s|\s+|_|gs;
obviously, i want to trim whitespace at the beginning and end, then turn any remaining whitespace+ into a '_'
all the docs i've looked at show elimating whitespace at beginning and end as separate statements.
thanks!
is there a way to convert these three statements into one?
$here =~ s|^\s+||gs;
$here =~ s|\s+$||gs;
$here =~ s|\s+|_|gs;
obviously, i want to trim whitespace at the beginning and end, then turn any remaining whitespace+ into a '_'
all the docs i've looked at show elimating whitespace at beginning and end as separate statements.
thanks!