in reply to
Better rewrite of multiple ifs
You've got 3 characters too many:
for ( keys %error_msgs) )
for ( keys %error_msgs)
- removed trailing round bracket
unless ( $error_msgs){$_} )
unless ( $error_msgs{$_} )
- removed right round bracket after $error_msgs
print div( {class=>'tip'}, $%error_msgs{$_} );
print div( {class=>'tip'}, $error_msgs{$_} );
- removed percent sign
Update: Formatting
Comment on
Re: Better rewrite of multiple ifs
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: Better rewrite of multiple ifs
by
Nik
(Initiate)
on May 01, 2005 at 09:20 UTC
Thank you!
I though it was something in the logic but i guess i was too tired to see that extra brackets.
[reply]
In Section
Seekers of Perl Wisdom