in reply to Re: Returning and passing data to and from subroutines
in thread Returning and passing data to and from subroutines
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Returning and passing data to and from subroutines
by almut (Canon) on Jul 07, 2010 at 23:59 UTC | |
by jethro (Monsignor) on Jul 08, 2010 at 08:16 UTC | |
|
Re^3: Returning and passing data to and from subroutines
by vendion (Scribe) on Jul 13, 2010 at 15:33 UTC |