in reply to Re^2: How to trim a line from leading and trailing blanks without using regex or non-standard modules
in thread How to trim a line from leading and trailing blanks without using regex or non-standard modules
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
|
|---|