Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: How can I check if the eth? exist

by rob_au (Abbot)
on Jul 10, 2004 at 09:34 UTC ( #373331=note: print w/ replies, xml ) Need Help??

in reply to How can I check if the eth? exist

While I've come to this discussion somewhat late, if you are wanting a more cross platform solution (as opposed to parsing the output of an external command such as ifconfig), you may wish to consider the employ of the most recent version of Net::Pcap (and the corresponding libpcap library) - With the most recent version of this module (0.05), a list of all network devices that can be used fornetwork monitoring can be retrieved using the findalldevs function:

my @devs = Net::Pcap::findalldevs( \( my $err = undef ) )


perl -le "print unpack'N', pack'B32', '00000000000000000000001011101000'"

Comment on Re: How can I check if the eth? exist
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://373331]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2015-11-29 20:28 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls