Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 chanting in the Monastery: (11)
As of 2016-02-11 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (376 votes), past polls