in reply to Re^2: cgi, library of subroutines, use with require?
in thread cgi, library of subroutines, use with require?

I also figured out that . is in @INC, so I don't need the use statement.

But . is a relative path, and cwd can change :)

See File::FindLib,FindBin

And bookmark these checklists :) brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts

  • Comment on Re^3: cgi, library of subroutines, use with require?