in reply to Improving if statements
my %stuff = ( moo => "cow", test => "blue", dark => "black", white => "light", house => "home", "all things" => "multi", money => "value", country => "Well, not Scotland apparently" ); my $whoopdie = $stuff{param("item")} || "NAOAOAOANOOOO!!!"; print "Final Item = $whoopdie";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Improving if statements
by choroba (Cardinal) on Sep 18, 2014 at 23:40 UTC | |
by Anonymous Monk on Sep 18, 2014 at 23:55 UTC | |
|
Re^2: Improving if statements
by Anonymous Monk on Sep 18, 2014 at 23:40 UTC | |
by Your Mother (Archbishop) on Sep 19, 2014 at 01:03 UTC |