Here is an ultra-simple script "tst":
-------------------
#!/usr/bin/perl -w
use Blah;
$b = new Blah;
print "foo";
$b->bar();
-------------------
Here is the ultra simple module "Blah.pm":
----------------
package Blah;
sub new {
my $pkg = shift;
bless {};
$pkg;
}
sub bar {
print "bar\n";
}
1;
--------------
Everything works fine:
% perl tst
foobar
But when I add -T to the first line of tst, something
goes wrong:
% perl -T tst
Can't locate Blah.pm in @INC (@INC contains:
/usr/local/lib/perl5/sun4-solaris/5.00401
/usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris
/usr/local/lib/perl5/site_perl) at tst line 3.
BEGIN failed--compilation aborted at tst line 3.
I can't figure out why this is happening. Can anyone
help?
=====
Dave Hoover
"Twice blessed is help unlooked for." --Tolkien
http://www.redsquirreldesign.com/dave
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/