in reply to transmit udp packets

If you want to construct your own network frames, use Net::Packet to build them and then inject them into your network.