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

Hey amitsq, the following is incorrect:

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

You add the *path* to the use lib pragma, not the file:

use lib 'S:\incubator\ex';

Replies are listed 'Best First'.
Re^4: cgi and own modules causing unspecified error
by marto (Cardinal) on Jun 08, 2017 at 14:48 UTC

    And add use Hello; :)

Re^4: cgi and own modules causing unspecified error
by amitsq (Beadle) on Jun 08, 2017 at 14:51 UTC
    changed it, but it just looks worse since the error is again : The page cannot be displayed because an internal server error has occurred.
    current code in hello-2.pl:
    #!d:\perl\bin\perl.exe use lib 'S:\incubator\ex'; use Hello; print"Content-type:text/html;charset=UTF-8\n\n" ; my $obj = Hello->new( sample_data => 'hello world', more_data => 'blah blah blah' ); $obj->sample_method();