in reply to Re^5: $obj->method v.s. $obj->method()
in thread $obj->method v.s. $obj->method()

FWIW: In both versions 5.004_02 and 5.004_04 (from different builds) that I have:

Replies are listed 'Best First'.
Re^7: $obj->method v.s. $obj->method()
by Burak (Chaplain) on May 09, 2009 at 18:53 UTC
    can you also try this:
    my $method = "foo"; $obj->$method; $obj->$method @args;
      my $method = "foo"; $obj->$method; $obj->$method @args;
      On both 5.004_02 and 5.004_04:
      • $obj->$method; and $obj->$method @args; both fail to compile;
      • $obj->$method(); and $obj->$method(@args); both compile and execute as expected.
        Thanks! It's confirmed by your post :)