in reply to Re^3: call perl subs in another directory?
in thread call perl subs in another directory?

Very cool! Thanks.
But I do notice that I get errors on (only) the first "do",
Subroutine display redefined at sources/Data1.pl line 8.

for each sub defined in the data files.
Greg

Replies are listed 'Best First'.
Re^5: call perl subs in another directory?
by gamache (Friar) on Oct 17, 2007 at 20:13 UTC
    are you sure Data1.pl has a 'package XXXX;' line, where XXXX is not used as a package name anywhere else? It sounds like one (or more) of the files you're doing is using either a package name that's used elsewhere, or is not supplying a package name (thereby reverting to package 'main').

    If you still have problems, make your files look more like my examples. ;)

    -pete