in reply to Will Perl 6 abbreviate this indirection for me?
You should be able to use Perl 6's given something like this:
However, if you're worrying about this sort of thing for efficiency reasons something is seriously wrong somewhere ;-)for my $k (@required_fields) { given $href->{$k} { StripLTSpace($_); $_ or return DIRTY $row, "ERROR: required field $k not present +"; }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Will Perl 6 abbreviate this indirection for me?
by princepawn (Parson) on Sep 08, 2003 at 22:55 UTC | |
by adrianh (Chancellor) on Sep 09, 2003 at 01:24 UTC |