in reply to [Perl 6] Any provision for a "dereferencing object"?
and then access this like :my %hash = ( foo => { foo1 => {foo2 => 5 } }, bar => { baz => [ 1,2,3 ], foo2 => 33 }, ... )
In this case '*' and '//' mean the same thing (just for illustration. regex-like and xpath-like syntax).$hash<*><foo2> $hash<//><foo2>
Return only the second 'foo2'..and so on.. you get the idea.$hash<bar><//><foo2>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Perl 6] Any provision for a "dereferencing object"?
by TimToady (Parson) on Jun 01, 2007 at 06:13 UTC | |
by vrk (Chaplain) on Jun 01, 2007 at 06:57 UTC |