Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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
            for scalar param($pname);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://208179]
[stevieb]: my RPi::WiringPi now fully supports: GPIO, LCDs, digital potentiometers, analog to digital converters, shift registers, barometric pressure sensor, direct access to SPI bus, and ability for more :)
[stevieb]: ...just need to perform many tests and POD review this week, then I'm going to put together some real projects and post about them

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-01-22 22:45 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (190 votes). Check out past polls.