Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Answer: How do I reference methods?

by Anonymous Monk
on May 24, 2002 at 11:31 UTC ( #169022=categorized answer: print w/replies, xml ) Need Help??

Q&A > object-oriented programming > How do I reference methods? - Answer contributed by Anonymous Monk

Another stupid way:
use obj; $o = new obj; $ref = sub{$o->method(@_)}; #so if you want to call ref: #&ref('arg1','arg2'[,...]);

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[erix]: hm comfortable french cars..
[Discipulus]: congrats choroba!
Discipulus shutdown and logoff seem untrappable by Perl on win. But it is in Cygwin. but i cannot switch to it

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-01-17 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (154 votes). Check out past polls.