Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Module ( method ) alias ?

by NetWallah (Abbot)
on Oct 04, 2012 at 05:36 UTC ( #997184=note: print w/ replies, xml ) Need Help??

in reply to Module ( method ) alias ?

Subclass and ALias (or call):

package ManAudio; use base ManVideo; sub newAudioRecord {$_[0]->{VideoType}=$_[0]->{AudioType}; ManVideo::newVideoRecord(@_)} # There is probably a way to use __SUPER__ .. (Aha + - Anonymonk has obliged) # Too lazy/too late to figure out the *Alias syntax , # which would be an alternative way of calling subs in the other pac +kage

             I hope life isn't a big joke, because I don't get it.

Comment on Re: Module ( method ) alias ?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-10-09 18:56 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (250 votes), past polls