I am going through my old code and adding:
use strict;
use warnings;

And I am running into some problems. I created a module (that I know works).

[ snip FILE: TempSorter.pm ]
## Packages used
package TempSorter;
use Exporter;
use strict;

### GLOBAL VARIABLES
@ISA = qw(Exporter);
@EXPORT = qw( wordgroup wordtype releasetype);


[snip FILE: pl.pl ]

use lib "/xxxx/perl_lib";

use strict;
use warnings;
use TempSorter;

my @array = sort { wordtype() } qw( foo bar boo far );


And these are the errors I get:
Global symbol "@ISA" requires explicit package name at /xxxx/TempSorter.pm
line 20.
Global symbol "@EXPORT" requires explicit package name at
/xxxx/TempSorter.pm line 21.
Compilation failed in require at /xxxx/pl.pl line 8.
BEGIN failed--compilation aborted at /xxxx/pl.pl line 8.

If I put a 'my' in front of the arrays then my pl.pl can't find the
function. What's the solution?

Nikola Janceski

The things you own end up owning you.
-- Tyler ('Fight Club')


----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to