perl -e 'tied sub {}->()'
doesn't parse differently than
perl -e 'tied( sub {}->() )'
and neither produce the "Can't modify reference constructor" error.
I think you tried
perl -e 'tied { sub {}->() }'
perl -e 'tied { sub {} }->()'
which is what Deparse gives for the above two programs. This is a bug in Deparse. It's not representative of the opcode tree produced by the first two programs.
In reply to Re: tied, or modified?
by ikegami
in thread tied, or modified?
by JadeNB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |