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?
- Re: RFC 109 (v1) Less line noise - let's ... Steve Fink
- Re: RFC 109 (v1) Less line noise - le... Ted Ashton
- Re: RFC 109 (v1) Less line noise... Steve Fink
- Re: RFC 109 (v1) Less line noise... Damien Neil
- Re: RFC 109 (v1) Less line noise... Steve Fink
- Re: RFC 109 (v1) Less line noise... Ted Ashton
- Re: RFC 109 (v1) Less line noise... Steve Fink
- Re: RFC 109 (v1) Less line noise... Casey R. Tweten
- Re: RFC 109 (v1) Less line noise... Casey R. Tweten
- Re: RFC 109 (v1) Less line noise... Nathan Torkington
- Re: RFC 109 (v1) Less line noise... Steve Fink
- Re: RFC 109 (v1) Less line noise... Nathan Torkington
- Re: RFC 109 (v1) Less line noise... Steve Fink
- Re: RFC 109 (v1) Less line noise - let's get rid ... John Porter
- Re: RFC 109 (v1) Less line noise - let's get ... Nathan Torkington
- Re: RFC 109 (v1) Less line noise - let's ... John Porter
- Re: RFC 109 (v1) Less line noise - let's get rid of @% John Porter
- Re: RFC 109 (v1) Less line noise - let's get rid ... John Barnette
- Re: RFC 109 (v1) Less line noise - let's get ... Jonathan Scott Duff
- Re: RFC 109 (v1) Less line noise - let's ... John Barnette
- Re: RFC 109 (v1) Less line noise - let's get ... John Porter
