in reply to tied, or modified?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: tied, or modified?
by JadeNB (Chaplain) on Nov 13, 2009 at 23:37 UTC | |
by ikegami (Patriarch) on Nov 13, 2009 at 23:40 UTC |