Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: "Correct" program style questions

by sauoq (Abbot)
on Oct 23, 2002 at 20:38 UTC ( #207525=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Cargo-cultish version with a temp variable.
    my $_name  = param('name') || '';
    my ($name) = $_name =~ /^([[:alpha:]]+)$/;
    
  2. or download this
    # BrowserUk's cargo-cultish only version.
    my ($name) = (param('name') || '') =~ /^([[:alpha:]]+)$/;
    
  3. or download this
    # My preferred version.
    my ($name) = param('name') =~ /^([[:alpha:]]+)$/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-07-04 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls