Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2006 10:06:57 +0700 (ICT)
From:      Olivier Nicole <on@cs.ait.ac.th>
To:        freebsd-questions@freebsd.org
Subject:   Running Perl from a C program
Message-ID:  <200610130306.k9D36vnv006860@banyan.cs.ait.ac.th>

next in thread | raw e-mail | index | archive | help
Hi,

I am facing a problem when running a Perl script from a C program.

My C calls 2 different Perl scripts. The way to call them is
completely similar.

One script does a 'require "timelocal.pl";' and is working.

The other try to do a 'use Email::MIME::Creator;' and is not working
(whatever the module I try to load).

Of course this script is working when called from the shell, so this is
not a syntax error.

This has to do with not being able to 'use' any module from withing a
Perl script called from C. A 'require' would not work either.

I know this may not be the best list for that question.

TIA

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610130306.k9D36vnv006860>