Home: Perl Programming Help: mod_perl:
Need help with Net::Frame::Layer

New User

Aug 4, 2009, 5:30 AM

Views: 13395
Need help with Net::Frame::Layer

Hello. What this is mean and how to resolve it?

Error message:

"subs" is not defined in %Net::Frame::Layer::EXPORT_TAGS at /usr/local/share/perl/5.10.0/Net/Frame/Layer.pm line 8 
Can't continue after import errors at /usr/local/share/perl/5.10.0/Net/Frame/Layer/IPv4.pm line 8
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.0/Net/Frame/Layer/IPv4.pm line 8.

My program:

   use Net::Frame::Layer::IPv4; 
use Net::Frame::Layer::TCP;
use Net::Frame::Simple;

my $ip = Net::Frame::Layer::IPv4->new(src=> '',dst=> '',);

my $tcp = Net::Frame::Layer::TCP->new( dst => '21',data=>'test',);
my $simple = Net::Frame::Simple->new( layers=>[$ip,$tcp],);

use Net::Write::Layer3;
use Net::Frame::Dump::Online;

my $oWrite = Net::Write::Layer3->new(dst => '');


Veteran / Moderator

Aug 4, 2009, 6:41 AM

Views: 13393
Re: [serjilcg] Need help with Net::Frame::Layer

It's referring to this line in the Net::Frame::Layer::IPv4 module.

use Net::Frame::Layer qw(:consts :subs);

And subsequently the assignment to the %EXPORT_TAGS hash, which is just below that use statement.

The error message is telling you that the %EXPORT_TAGS hash is missing the subs definition, which appears to be a bug in the module. you could simply remove :subs from the use statement, but the best approach would be to contact the author of the module and ask him/her about this issue.

New User

Aug 6, 2009, 2:18 AM

Views: 13363
Re: [serjilcg] Need help with Net::Frame::Layer


Problem was that I didn't have Exporter library.
I was install it and reinstall Net::Frame