I doubt this is valid syntax.
you probably mean
trim( qr/\s/, $line)
see Re^3: How to trim a line from leading and trailing blanks without using regex or non-standard modules for a slightly better implementation
> this is impossible in Python
passing regex inside a string is fine in Perl, why not in Python?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: How to trim a line from leading and trailing blanks without using regex or non-standard modules
by LanX
in thread How to trim a line from leading and trailing blanks without using regex or non-standard modules
by likbez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |