in reply to Re: Improving if statements
in thread Improving if statements

I liked it!
I just fixed this line for future reference:

From this:
my $whoopdie = $stuff{param("item")} || "NAOAOAOANOOOO!!!";
To:
my $whoopdie = $stuff{$q->param("item")} || "NAOAOAOANOOOO!!!";

Thanks for the helping!

Replies are listed 'Best First'.
Re^3: Improving if statements
by Your Mother (Archbishop) on Sep 19, 2014 at 01:03 UTC

    It’s fine of course but using CGI.pm as OO has always struck me really silly (UNLESS you’re passing the object to other code). use CGI ":standard"; param(); La.