in reply to subroutine redefined error when switching scripts

That sounds like some refactoring is in order. Try collecting common code into namespaces with the package directive. Break each namespace into a *.pm file of its own and use them to provide the functions. You can distinguish between similarly named functions by namespace.

Sourcing scripts with require as you do is fine, but the reorganization I suggest will take you further.

After Compline,
Zaxo

  • Comment on Re: subroutine redefined error when switching scripts