in reply to Re: named arguments
in thread named arguments
You see the mistake above? Happend all the time, until I was forced to add this to __params():sub foo { my ($self, $params) = __params({ -a => '...', }, \@_); ... if ($params->{a}) {
foreach my $key (keys %$result) { my $tkey = $key; $tkey =~ s/^-//; $result->{$tkey} = $result->{$key}; } return $result; }
|
|---|