Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: ip address list

by JavaFan (Canon)
on Jan 19, 2012 at 16:10 UTC ( #948801=note: print w/ replies, xml ) Need Help??

in reply to ip address list

So, you're asking how to remove '/29' from a string, and how to remove the first (second?) element of a list?

You also removed '' from the list, but you didn't say why.

Comment on Re: ip address list
Replies are listed 'Best First'.
Re^2: ip address list
by mlebel (Hermit) on Jan 19, 2012 at 16:37 UTC
    Hi, sorry about that, your right.
    I need to remove the network address as well as the gateway address.
    I will be using this code within another script that checks internet usage, so I simply need the hosts addresses and not the network, gateway or broadcast addresses.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-10-09 00:21 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls