Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Simple inheritance question

by ikegami (Pope)
on Apr 23, 2010 at 20:40 UTC ( #836600=note: print w/replies, xml ) Need Help??


in reply to Re^4: Simple inheritance question
in thread Simple inheritance question

as if it were a function internal to Two, not requiring an object.

As if it's something it isn't. So make it what you want it to be.

BEGIN { *Two::test = \&One::test; }

It's really weird to export functions from a Class module, though.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-12-17 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (72 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!