Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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 browsing the Monastery: (4)
As of 2015-11-29 01:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls