in reply to RE: Subtle Quirks
in thread Subtle Quirks
But rather this:my %foo = (BAR => $cgi->param('bar'), BAZ => $cgi->param('baz'), ZOT => $cgi->param('zot'), );
It's more compact and maintainable.my %foo; $foo{$_} = param($_) for qw(bar baz zot);
-- Randal L. Schwartz, Perl hacker
|
|---|