Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: "Correct" program style questions

by adrianh (Chancellor)
on Oct 23, 2002 at 21:39 UTC ( #207539=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $_name     = param('name')    || '';
    my $_color    = param( 'color' ) || '';
    
  2. or download this
    my ($_name, $_color) = map {param($_) || ''} qw(name color);
    
  3. or download this
    my ($_name, $_color) = 
            map {defined($_) ? $_ : ''} map {param($_)} qw(name color);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2016-07-26 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (240 votes). Check out past polls.