XP is just a number | |
PerlMonks |
Re^3: How to trim a line from leading and trailing blanks without using regex or non-standard modulesby LanX (Saint) |
on Aug 15, 2020 at 01:04 UTC ( [id://11120758]=note: print w/replies, xml ) | Need Help?? |
>
trim(/\s/.$line) 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
In Section
Seekers of Perl Wisdom
|
|