Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Invoke a method on an object

by pobocks (Chaplain)
on Jan 13, 2009 at 15:38 UTC ( [id://735972]=note: print w/replies, xml ) Need Help??


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

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";

Replies are listed 'Best First'.
Re^5: Invoke a method on an object
by merlyn (Sage) on Jan 13, 2009 at 15:59 UTC
    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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://735972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found