in reply to Re^6: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (demerphq mistaken?)
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
The result of the evaluation of an identifier with its sigil may be coerced to something diferent depending on the context in which that evaluation is effective
That's not how context works at all, but even if you only consider list context, you still have:
so in list context,
Of course they do, at least since perl4 patchlevel 36 (or 19 on Atari).
I can't verify that claim, but I doubt it. At the very least, it hasn't been the case since 5.6 which was released 14 years ago. There is not a single sigil that indicates the type of the value returned.
the evaluation of an identifier bare of any context depends on its sigil.
Noone said otherwise. Of course it depends on the sigil. @a is not the same as $a.
The premise demerphq put forth is that the sigil is an indicator of the type of value to which the sigiled expression evaluates to. That's clearly not the case. You can't break a model that doesn't exist.
|
|---|