Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.

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 chilling in the Monastery: (10)
As of 2016-10-24 20:46 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.