princepawn has asked for the wisdom of the Perl Monks concerning the following question:
I had to manually index into my hashref twice, which is computive intensive, but it would be nice if... oh I think Alias allows me to do this already... no actually it does not appear to make this any easier. What I would like to have isfor my $k (@required_fields) { StripLTSpace($href->{$k}); $href->{$k} or return DIRTY $row, "ERROR: required field $k not present"; }
for my $k :used_as=>$href->{$k} (@required_fields) { StripLTSpace($k); $k or return DIRTY $row, "ERROR: required field $k not present"; }
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality... download and use The Emacs Code Browser
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Will Perl 6 abbreviate this indirection for me?
by bbfu (Curate) on Sep 08, 2003 at 21:22 UTC | |
|
Re: Will Perl 6 abbreviate this indirection for me?
by clscott (Friar) on Sep 08, 2003 at 21:30 UTC | |
|
Re: Will Perl 6 abbreviate this indirection for me?
by adrianh (Chancellor) on Sep 08, 2003 at 22:22 UTC | |
by princepawn (Parson) on Sep 08, 2003 at 22:55 UTC | |
by adrianh (Chancellor) on Sep 09, 2003 at 01:24 UTC | |
|
Re: Will Perl 6 abbreviate this indirection for me?
by BrowserUk (Patriarch) on Sep 08, 2003 at 23:45 UTC | |
|
Re: Will Perl 6 abbreviate this indirection for me?
by Roger (Parson) on Sep 08, 2003 at 23:38 UTC | |
|
Re: Will Perl 6 abbreviate this indirection for me?
by dragonchild (Archbishop) on Sep 08, 2003 at 20:47 UTC | |
by bbfu (Curate) on Sep 08, 2003 at 21:13 UTC |