Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Module ( method ) alias ?by exilepanda (Friar) |
on Oct 04, 2012 at 05:14 UTC ( [id://997181]=perlquestion: print w/replies, xml ) | Need Help?? |
exilepanda has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a module set to manage Video files for our Knowledge Management system. The interface is something like this
And now, my next task is almost the same, and yet identical , but this time is for audio. So I may use the same framework, by giving different DB handle. However, although I can completely use ManVideo::* to do the job, however this is odd to use the same interface to write my source code for Audio like this : $audio = newVideoRecord ( ... ) So, is there any simple (and safe) hack, so that I can create another module set, namely ManAudio, looks like :
One thing that might be a little complex is that I might need to do some pre-process on the arguments. As shown in above code is AudioType=>"meeting". I have to change AudioType to VideoType before passing to newVideoRecord(). ( This return me a list of authorize staffs to view/listen ) Thank you very much in advance for any clues.
Back to
Seekers of Perl Wisdom
|
|