#!/usr/bin/perl use strict ; # ...and... use warnings ; # always! # let your cgi find authenticate.pm in /usr/lib/cgi... use lib '/usr/lib/cgi' ; # ...and you are safe ;-) use authenticate.pm # your CGI goes here :-)