in reply to RE: Postfix, whole-object dereference operators
in thread keys function question
and you can't do this:%{$ref->[0]->{param}->[1]->{name}};
so, I think it's a gripe about the ugly looks of the syntax. IMHO, I don't mind it, I consider it something like "Variable Encapsulation" in syntax. However, I could see a secondary syntax, as a prefix.%$ref->[0]->{param}->[1]->{name};
Perhaps:
print foreach HASH $obj->{param}; # or we don't like barewords print foreach 'HASH' $obj->{param}; # or parhaps it's really in a prag +ma use dereference qw/HASH/; print foreach HASH $obj->{param}; # or it stays the same print foreach %{$obj->{param}};
-- Casey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Postfix, whole-object dereference operators
by japhy (Canon) on Jul 21, 2000 at 19:38 UTC | |
|
RE: RE: RE: Postfix, whole-object dereference operators
by japhy (Canon) on Jul 22, 2000 at 02:01 UTC |