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 +"; }; }
In reply to Re: Will Perl 6 abbreviate this indirection for me?
by adrianh
in thread Will Perl 6 abbreviate this indirection for me?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |