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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



serjilcg
New User

Aug 4, 2009, 5:30 AM

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

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

Error message:

Code
"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:

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

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

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 => '192.168.95.1');




$oWrite->open;
$simple->send($oWrite);
$oWrite->close;



FishMonger
Veteran / Moderator

Aug 4, 2009, 6:41 AM

Post #2 of 3 (9094 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.

Quote
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.


serjilcg
New User

Aug 6, 2009, 2:18 AM

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

Thanks,

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