in reply to subroutines - creating a custom subroutine and 'subroutine redefined' errors

Why do you want to redefine the subs?

I'd just write the real subs in the first place and put references to them into a hash, and if you want actions to be performed on success you can define another set of actions and store them in a different hash.

You can iterate over the hash and collect possible error messages, and if no error messages are there, it has passed.

  • Comment on Re: subroutines - creating a custom subroutine and 'subroutine redefined' errors