PetaMem has asked for the wisdom of the Perl Monks concerning the following question:
this is really one of the moments I would like to change my
profession (or hobby for that matter). It all started with
imported symbols being undefined (for no visible reason). So
I striped it down until I have nearly verbatim the example of
the camel book.
File 1:
File 2:#!/usr/bin/perl -w use strict; use Test qw(dummy); #print $config{path}; &dummy;
And now for the fun. Perl 5.6.0 on my Linux Box says (it didnītpackage Test; use strict; use Exporter; my %config = ( lexpath => '/home/rj/proj/elric/lexika/', silence => 0, ); @ISA = qw(Exporter); @EXPORT_OK = qw(dummy); BEGIN { } sub dummy { print "aha"; } END { } 1;
rj@proxima:~/proj/elric/src > test.pl "dummy" is not exported by the Test module at ./test.pl line 4 Can't continue after import errors at ./test.pl line 4 BEGIN failed--compilation aborted at ./test.pl line 4.And that was it. Iīd gladly pull my hair if I had any left.
Ciao
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exporter is driving me mad
by rucker (Scribe) on Jul 18, 2001 at 01:01 UTC | |
|
Re (tilly) 1: Exporter is driving me mad
by tilly (Archbishop) on Jul 18, 2001 at 01:23 UTC | |
|
Re: Exporter is driving me mad
by converter (Priest) on Jul 18, 2001 at 01:19 UTC | |
|
Re: Exporter is driving me mad
by lestrrat (Deacon) on Jul 18, 2001 at 01:19 UTC |