Your elsif should have parens following.

And your backslashes seem to be missing from the description of \s.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


In reply to •Re: Perl cheat sheet by merlyn
in thread Perl cheat sheet by Juerd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":