Nathan Torkington wrote:
> 
> Don't forget that the rationale behind the infix dereferencing is
> this:
> 
>   @variable_name
>   @{variable_name}
>   @$scalar_containing_variable_name     @$scalar_containing_value_ref
>   @{ code evaluating to variable name } @{ code giving value ref }

True. Would anyone mourn @$scalar_containing_variable_name if it died?
I've never used it, and I'm rather glad I haven't. Perl5's -w doesn't
notice $x="var"; print @$x either -- it'll complain if you mention @var
once.

Or leave it, but make ->@ always dereference an array ref. If you ask
for explicit dereferencing with ->, you always get it. And you get a
nice understandable warning otherwise, instead of the undefined value of
a nonexistent variable.

Damn, learn something new every day... perl really is incestuous with
its symbol table, isn't it?

Reply via email to