in reply to Calling a function that may not be there...
I think what you are looking for is the AUTOLOAD routine. Take a look at page 296 of the Camel Book v3. The section called 'Autoloading' starts by saying "Normally, you can't call a subroutine that isn't defined. However, if there is a subroutine named AUTOLOAD in the undefined subroutine's package, then the AUTOLOAD subroutine is called with the same arguments that would have been passed to the original subroutine. . . ."
Hope that puts you in the right direction.
|