LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: David Lloyd <lloy0076@rebel.net.au>
To : <linuxsa@linuxsa.org.au>
Date: Thu, 31 May 2001 13:04:43 +0930
PERL Question
I have a module called wdbMain which has this:
(wdbMain.pm)
...
@ISA=qw(Exporter);
@EXPORT_OK=qw(setup...);
...
It's in /usr/lib/perl5/site_perl/i386-linux/WDB/
Now I have:
...
#! /usr/bin/perl
use WDB::wdbMain qw(setup);
print setup();
...
However, perl 5.6 complains that:
&main::setup ... doesn't exist
I thought that my "use" would bring "setup" into my namespace.
I've discovered that replacing setup() with wdbMain::setup() works
without a glitch. I've tried substituting "setup" with foo, camel and
yodling just in case I've clobbered some preexisting function called
"setup"; in all these cases the same behaviour occurs.
I know there's a reason why this is so, but I just can't figure it out
at the moment.
DSL
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page