in reply to Re: tied, or modified?
in thread tied, or modified?
Hmm, Perl 5.8.9 gives me
which gives a different error:$ perl -MO=Deparse -e 'tied sub {}->()' tied {sub { } }->(); -e syntax OK
$ perl -e 'tied { sub {} }->()' Not a subroutine reference at -e line 1.
The code you mention doesn't compile:
$ perl -e 'tied { sub {}->() }' Can't modify anonymous hash ({}) in tied at -e line 1, at EOF Execution of -e aborted due to compilation errors.
Thanks for taking the time to think about this. I've cut and pasted these straight from the command line to avoid further incidents. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: tied, or modified?
by ikegami (Patriarch) on Nov 13, 2009 at 23:40 UTC |