Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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 '10.2.9.0' from the list, but you didn't say why.

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948801]
help
Chatterbox?
[james28909]: id just rename the subrouties perl what kind of data they are getting. something easy to remember too. like if get_data were returning movies titles, rename get_data to movies or movie_titles or get_movie_titles.
[james28909]: s/perl/per/
[james28909]: but i dont really know what your end goal is. if it works dont fix it lol

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-05-24 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?