in reply to Re^2: Returning and passing data to and from subroutines
in thread Returning and passing data to and from subroutines

So vendion really wanted to write ...

Well, just another speculation :)

The OP said in the comment "...testing the input for valid alphanumeric characters".  What you're suggesting would remove all whitespace if there's nothing but whitespace in the string.

  • Comment on Re^3: Returning and passing data to and from subroutines

Replies are listed 'Best First'.
Re^4: Returning and passing data to and from subroutines
by jethro (Monsignor) on Jul 08, 2010 at 08:16 UTC
    Sorry, I added a \Z that wasn't in the source (so it just removes leading spaces). My point was about the style not the contents of the regex.