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

RE: RE: Subtle Quirks

by merlyn (Sage)
on Jul 28, 2000 at 19:33 UTC ( #24881=note: print w/ replies, xml ) Need Help??

in reply to RE: Subtle Quirks
in thread Subtle Quirks

That's why I would probably not write this:

my %foo = (BAR => $cgi->param('bar'), BAZ => $cgi->param('baz'), ZOT => $cgi->param('zot'), );
But rather this:
my %foo; $foo{$_} = param($_) for qw(bar baz zot);
It's more compact and maintainable.

-- Randal L. Schwartz, Perl hacker

Comment on RE: RE: Subtle Quirks
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-07-29 04:47 GMT
Find Nodes?
    Voting Booth?

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

    Results (260 votes), past polls