Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 imbibing at the Monastery: (1)
As of 2016-08-31 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.