- Original Message -
From: "drieux" <[EMAIL PROTECTED]>
To: "Perl Beginners Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 23, 2004 19:53
Subject: Re: Loading and using modules using eval
> IF the Text::process and XML::process functions are
On Jan 23, 2004, at 1:23 PM, Papo Napolitano wrote:
[..]
To tell me I have to do:
&TextFile::process('file1.txt', '1');
&TextFile::process('file2.csv', '2');
&XMLFile::process('file3.xml', 'this and that');
[..]
Why not try something a bit more vanilla
where one does the
use SomeModu
Hi all,
I have this piece of code:
my @modules = (
'Module1', 'Module2', 'Module3',
'ModuleX', 'ModuleY', 'Blah',
);
my $param1 = "whatever";
my $param2 = 0;
for my $module (@modules) {
$param2++;
eval("require $module");
if ($@) {
print "$module Not found\n";
} else {
eval("&${