perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Christophe Boggio <>
Subject sub BEGIN in embperl ?
Date Mon, 19 Oct 2009 10:45:40 GMT

I wish to "use" some library that is not located on the PATH so
I try this kind of code inside my base.epl :

sub BEGIN {
	my $script = $ENV{SCRIPT_FILENAME};
	$script =~ s/^(.*)\/.*?$/$1/;
	push @INC,$script;
	push @INC,"$script/..";

But it does not seem to work. How should I do this (what is
the right way of doing this with embperl) ?

Maybe some hardcoded use lib "xxx" inside ?

Thanks for your help !

Jean-Christophe Boggio                       -o)                       /\\
Independant Consultant and Developer        _\_V

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message