Don't ask to ask, just ask | |
PerlMonks |
appending params to call-backby raptor (Sexton) |
on Jul 31, 2001 at 23:00 UTC ( [id://101277]=perlquestion: print w/replies, xml ) | Need Help?? |
raptor has asked for the wisdom of the Perl Monks concerning the following question:
hi, I have the following situation : A main module BigOne.pm a Helper.pm(here i have required function implemented), so in the script I have something like this : script.pl =========== use Helper;
BigOne.pm ==========
See $kv gets the return value from Helper::func(), everything is OK until I need to pass one more parameter to this function which I don't know in BigOne.pm but know at script.pl.... i.e. I want to say something like this : and then the real call (in BigOne) has to become : instead of just :
Any help very appricated.... PS. One possible solution is to pass one or more parameters at the creation of BigOne object but this is not acceptable in my case.. 'cause it is a little bit more complicated .. One last-resort solution is to create a function in script.pl which will get the parameters from &$vals()-call and then redispach/recall Helper::func() on its behalf!... i.e. behave like proxy ( BigOne-&vals --script.pl-->Helper::func() ) .. is there better way !? 'cause if I use this way I have to also take care for return values which can be a ref-ARRAY but also can be flattened array with alot of elements :"( Thanx again and sorry for loosing your time !!
Back to
Seekers of Perl Wisdom
|
|