When i create my own perl module and execute,it fails to execute due to compilation errors at require Exporter..
This is my code in the module:
package LineParse;
use XML::Simple;
use Data::Dumper;
use strict;
BEGIN
{
use vars qw(@EXPORT @EXPORT_OK @ISA);
use Exporter;
@ISA = qw(Exporter);
@Export = qw(&readconfig );
@EXPORT_OK = qw();
}
sub readconfig()
{
# my xml parsing code
}
When i execute a syntax check on this module, it says compilation Error.Please help me.
sriram$perl -c LineParse.pm
Global symbol "@Export" requires explicit package name at LineParse.pm line 14.
BEGIN not safe after errors--compilation aborted at LineParse.pm line 18.