From owner-freebsd-questions@FreeBSD.ORG Fri Oct 13 03:06:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C6F116A407 for ; Fri, 13 Oct 2006 03:06:58 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A9A343D46 for ; Fri, 13 Oct 2006 03:06:56 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id k9D36hg6002593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 13 Oct 2006 10:06:43 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id k9D36vnv006860; Fri, 13 Oct 2006 10:06:57 +0700 (ICT) Date: Fri, 13 Oct 2006 10:06:57 +0700 (ICT) Message-Id: <200610130306.k9D36vnv006860@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-questions@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: Running Perl from a C program X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 03:06:58 -0000 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