in reply to Problem with calling method new

To make it so perl can locate that pesky package.
  1. Put your cgi script and your package files into your cgi-bin directory or if you can make a 'lib' dir off your cgi-bin dir and put your package(s) in there.
  2. Add the following to your script code.
    use FindBin qw($Bin); use lib $Bin; or use lib "$Bin/lib";

mitd-Made in the Dark
'My favourite colour appears to be grey.'