Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Improving if statements

by Anonymous Monk
on Sep 18, 2014 at 23:40 UTC ( [id://1101122]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1101122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found