Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: "Correct" program style questions

by Aristotle (Chancellor)
on Oct 26, 2002 at 00:00 UTC ( #208179=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($foo, $bar, $baz, $quux);
    defined && /^([[:alpha:]]+)$/ ? $foo = $1 : taint_fail('foo') for scal
    +ar param('foo');
    defined && /^([[:alpha:]]+)$/ ? $bar = $1 : taint_fail('bar') for scal
    +ar param('bar');
    defined && /^([[:alpha:]]+)$/ ? $baz = $1 : taint_fail('baz') for scal
    +ar param('baz');
    defined && /^([[:alpha:]]+)$/ ? $quux = $1 : taint_fail('quux') for sc
    +alar param('quux');
    
  2. or download this
    my %check = (
        foo => qr/^([[:alpha:]]+)$/,
        bar => qr/^([[:alpha:]]+)$/,
    ...
        defined && /$check{$pname}/ ? $f{$pname} = $1 : untaint_fail($pnam
    +e)
            for scalar param($pname);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://208179]
help
Chatterbox?
[ambrus]: As for TeX, I'm not trying to discourage anyone from writing carefully beautifully typeset documents, in maths or outside. But most people aren't willing to do that, and will spend only little time about the formatting,
[ambrus]: and try to leave everything else to automated systems without checking how what they write came out format-wise, and for those people, discounting the part about journals with a specific format above,
[ambrus]: just blindly recommending to use LaTeX is a bad idea now.
[Discipulus]: I havery limited needs in such field. Sometimes (for children party invitations) i draw something by hand and I scan it to include into an ms doc.
Discipulus havery can be a good neologism for: have very..;=)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-09-26 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?