in reply to Re^2: Creating wrapper over a wrapper
in thread Creating wrapper over a wrapper
Well, if the ABC::new_time_var function is declared with a prototype of (), meaning no arguments, you cannot call it with arguments in your wrapper, like ABC::new_time_var(@_). Similarly for the other two functions.
See also other threads on using prototypes here, to better understand how prototypes work in Perl (hint: they don't act like in C).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating wrapper over a wrapper
by sunnyagarwal008 (Initiate) on May 06, 2010 at 09:16 UTC | |
by almut (Canon) on May 06, 2010 at 10:01 UTC | |
by Anonymous Monk on May 06, 2010 at 09:53 UTC |