> while an interesting strategy to make sure that
> a stack of perl scripts are there, did you mean
> to check for them as 'scripts'? or are you starting
> up the curve from perl library to perl modules?
I don't know how to define, I just put them( *.pl files)
all under a folder "myLib" inside /lib/. And those .pl
files are just subs insides, even not "packaged"... so...
on the point of my view on word, they are just scripts,
is that true ? but I can sure they are not modules. =)
> As noted you should do the require in an eval block
> so that you can gracefully manage the "oopsies"...
I don't really know how to, so a stupid way to solve this problem :
my $libPath = 'C:/perl/lib/myLib/';
my $script = 'ScriptA.pl';
if (-e $libPath.$script) { require ($libPath.$script) }
else { print "Fail to load ".$script; exit(0) }
Rgds,
Connie
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]