> > And also there is no need to quote hash keys, and if $inner is just a
> > hash reference then the
> > following is a shorter replacement:
> >
> > print join (" : ", $_->{qw<dir tpl ext rgx>}) . "\n" for @$cfgs;
>
> I have not been able to get any variant of this to work.
Try this FAR simplier case, which does work.
my %hash = (
key1 => "value1",
key2 => "value2"
);
print join (" ", @hash{qw<key1 key2>});
Appears the array symbol is required, and probably the above would need to
be changed to:
print join (" : ", @{%$_}->{qw<dir tpl ext rgx>}) . "\n" for @$cfgs;
but that's guessing. I hereby leave making it work correctly as an exercise for the
reader.
Jonathan Paton
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]