![]() |
|
No such thing as a small change | |
PerlMonks |
Re: RFC: CGI::Tablesby chip (Curate) |
on May 09, 2003 at 16:03 UTC ( #256912=note: print w/replies, xml ) | Need Help?? |
Minor point, but your creates %attrs hashes by copying the incoming hash (if any), but it could just use its ref directly. So instead of:
my %attrs = %{shift @$data} You could say: my $attrs = (ref($data->[0]) eq 'HASH') ? shift @$data : {} Then refer to $attrs->{FOO}. -- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Meditations
|
|