good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Multiple testing methodsby BigLug (Chaplain) |
on Sep 26, 2004 at 21:37 UTC ( [id://394012]=note: print w/replies, xml ) | Need Help?? |
I'd go with something similar to the above, but remove some stuff:
You don't need the $error flag. The $message will be empty (false) if there are no errors. I've also taken out the length() check on $message for the same reason .. if the message has length then testing it in this context will return true and the <br> tag will be output. Cheers! Rick If this is a root node: Before responding, please ensure your clue bit is set. If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.
In Section
Seekers of Perl Wisdom
|
|