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
In reply to RE: RE: Subtle Quirks
by merlyn
in thread Subtle Quirks
by beppu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |