----- Original Message ----- > All this works fine on linux, but not on Windows. I get: > > [error] [client 127.0.0.1] Bareword "db" not allowed while "strict subs" > in use at ... > > After a bit of searching around, I changed the line to: my $dbh=db(); > > This causes a different error: > > [error] [client 127.0.0.1] Bareword "db" not allowed while "strict subs" > in use at ... > [error] [client 127.0.0.1] Undefined subroutine &main::db called at ... >
Windoze is case-insensitive, so when you say: use db; It looks first in the distribution's lib directory and finds DB.pm, and assumes that's what you wanted. Obviously, this module does not have a db() function defined in it. Try fully qualifying the path to the db.pm module (if relative from where the script runs), or specifying the lib directory you want to use, like: use lib "/path/to/db.pm/"; use db; -dZ. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs