in reply to Re^2: tied, or modified?
in thread tied, or modified?

It doesn't look like that is how it gets parsed (in 5.10.0):
# perl -MO=Deparse,-p -e 'tied( sub {}->() )' tied({sub { } }->()); -e syntax OK
In other words,
tied( { sub {} }->() );
which I think is equivalent to the following, because the braces there are denoting a block rather than a hash:
<c> tied( ( sub {} )->() );

Replies are listed 'Best First'.
Re^4: tied, or modified?
by JadeNB (Chaplain) on Oct 23, 2009 at 15:02 UTC
    Ah, still more fuel for my wild speculation! You have indicated the deparse-ing of tied( sub {}->() ), which is just as I expected; but I went back and checked the deparse-ing of tied sub {}->(), and it looks the same to me:
    $ perl -MO=Deparse,-p -e 'tied sub {}->()' tied({sub { } }->()); -e syntax OK
    I had assumed from the (ahem) reference to reference constructors that tie was gobbling up the sub {} before ->() could get at it, but that's obviously not the case. So: Since they deparse identically, why do tied sub {}->() and tied( sub {}->() ) give different error messages?