>>>>> "Jeff" == Jeff 'Japhy' Pinyan <[EMAIL PROTECTED]> writes:

Jeff> On Aug 2, awarsd said:
>> #!/usr/bin/perl
>> 
>> use CGI qw(:standard);
>> use DBI;
>> 
>> require "/path/to/config.pl";
>> ##inside config.pl it has $dataDir
>> ##$dataDir = "/path/to/";
>> use lib $dataDir."Module";
>> use Test;

Jeff> You named your module "Test"?  That's why you're getting a false positive.
Jeff> There's a standard module named Test; it's being use'd, instead of your
Jeff> module.

This may be the first occurance "in the wild" of the "test" overload,
comparable to naming your Perl program "test" and then wondering
why it doesn't generate any output when invoked as

        $ test

because that's actually executing the shell built-in called "test".
You have to use

        $ ./test

to get the program to run.  Hence, in the Llama, we advocate always
starting a proggram with "./" if it's in the current directory.

print "Just another Perl [book] hacker,"

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to