in reply to Re^2: cgi and own modules causing unspecified error
in thread cgi and own modules causing unspecified error

use lib 'S:\incubator\ex\Hello.pm';

Add the directory in which modules reside, rather than the full path to the module. Also you still need to use it:

use strict; use warnings; use lib '/home/marto/temp'; use Hello; my $obj = Hello->new( sample_data => 'hello world', more_data => 'blah blah blah' ); $obj->sample_method();

Also: lib.