in reply to Re^2: Invoke a method on an object
in thread Invoke a method on an object

No:

perl -Mstrict -le "sub P::p{print 'p'};my $p=bless {},'P';my $m='p';$p +->$m;"

Replies are listed 'Best First'.
Re^4: Invoke a method on an object
by pobocks (Chaplain) on Jan 13, 2009 at 15:38 UTC

    I acknowledge that this works, and runs under "use strict"; but how is $m not a symbolic reference? I'm a little confused here.

    for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";
      Yes. It is a symbolic reference (a name instead of a "real" reference).

      Yes. It still works even under "use strict 'refs'".

      That's the way it works, and always has.

        As I have discovered from CB, and should have known for myself. Thank you.

        for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";