$err=Net:
cap::sendpacket($pcap,\$ethr_data)
or die "Can't send packet:$!\n\r$err";
and it will be stopped when it goes here.return error is :Bad file descriptor
from $!.but $err is 0;it says that it returns 0 if sending packet successfully
when using Net:
cap::sendpacket.
actually the packet is send out.i use Ethereal to capture the packet.
or the Net:
cap::sendpacket can't be used like this?

or die "Can't send packet:$!\n\r$err";
and it will be stopped when it goes here.return error is :Bad file descriptor
from $!.but $err is 0;it says that it returns 0 if sending packet successfully
when using Net:

actually the packet is send out.i use Ethereal to capture the packet.
or the Net:
