in reply to Re^3: Regular Expression Help!
in thread Regular Expression Help!

I don't understand why you won't just use:
if ($var =~ /^\s*$/) { # Do blank procedure } else { # Do nonblank procedure }

Replies are listed 'Best First'.
Re^5: Regular Expression Help!
by Anonymous Monk on Jul 06, 2010 at 13:30 UTC
    I was reading on this posting and found an interesting regular expression, can someone explain what is happening here?

    if ($var =~ /^\s*$/)


    Thanks!