Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 musing on the Monastery: (6)
As of 2014-12-21 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls