CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


New User

Aug 4, 2009, 5:30 AM

Post #1 of 3 (14722 views)
Need help with Net::Frame::Layer Can't Post

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/ line 8 
Can't continue after import errors at /usr/local/share/perl/5.10.0/Net/Frame/Layer/ line 8
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.0/Net/Frame/Layer/ 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

Post #2 of 3 (14720 views)
Re: [serjilcg] Need help with Net::Frame::Layer [In reply to] Can't Post

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

Post #3 of 3 (14690 views)
Re: [serjilcg] Need help with Net::Frame::Layer [In reply to] Can't Post


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


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives