|Perl Monk, Perl Meditation|
Comment onby gods
|on Feb 11, 2000 at 00:06 UTC||Need Help??|
The model supposedly broken by the change is that $ returns a scalar and @ returns a list. I understood this to mean "a variable number of scalars". Is there another possibility?
My posts abolish the claim that introducing $a->@* "breaks the original model of sigils completely", that model supposedly being that the sigil is an indicator of the the type of the value returned. It's not.
To determine whether an expression starting with $ returns, one must also examine the rest of the expression and/or the context (in the larger sense). ($x vs @a = $x->(); vs $a = $x->();)
To determine whether an expression starting with @ returns, one must also examine the context (in the larger sense). (@a = @x; vs $a = @x;)
If I hadn't interpreted "context" narrowly, shmem would have been arguing against himself.. Any splitting of hairs is in trying to understand his disagreement, for he has yet to mention which of my premises he disagrees with, and he has yet to point out a logic error.
In reply to Re^12: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (context)