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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-18 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found