in reply to Re^2: Nested Hash Dereferencing Syntax
in thread Nested Hash Dereferencing Syntax
If you could write %($hash{$key}) then you should expect to be able to write %($hash{$key}){$other_key}. But perlvar tells us that $( is a built-in special variable, so correctly knowing how to parse that would be very, very hard.
Incidentally %( is a valid Perl hash, though it is not used for anything and accessing it can get tricky. But the following is valid Perl:
%( = 0..9; print keys(%();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Nested Hash Dereferencing Syntax
by ikegami (Patriarch) on Feb 24, 2009 at 18:31 UTC | |
by tilly (Archbishop) on Feb 24, 2009 at 21:21 UTC |