Using xms switches and m{} instead of // with every regex is a suggestion by Damian Conway in his book 'Perl Best Practices'
So vendion really wanted to write
s{\A \s* }{}xms
UPDATE: Removed a \Z that shouldn't have been there
In reply to Re^2: Returning and passing data to and from subroutines
by jethro
in thread Returning and passing data to and from subroutines
by vendion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |