Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Managing your IP space with Perl

by blakem (Monsignor)
on Aug 16, 2002 at 09:02 UTC ( #190615=note: print w/replies, xml ) Need Help??


in reply to Managing your IP space with Perl

Nice tutorial, ++. For a fun diversion, you might also enjoy reading the responses to Challenge Problem: Merging Network Addresses which deals with a specific task in the same problem domain.

-Blake

Replies are listed 'Best First'.
Re^2: Managing your IP space with Perl
by runrig (Abbot) on Nov 22, 2004 at 05:59 UTC
    FYI,

    Just for kicks, I was going to try running a benchmark of this module on the nm5.in file in Challenge Problem: Merging Network Addresses, and since I'm on WinXP at the moment, I tried using ppm to install this module, and could not install it because it was not in ActiveState's ppd repository (yes, I know if it's pure perl I can just copy it, but I don't want to do that badly enough). When I checked the ppd build status, I saw that it failed on several platforms (Win, Solaris,HP). You may or may not want to address that issue in the next version, if possible. Even if I could run it on the nm5.in file in Dominus' test suite, I see that it would involve creating a rather large array using this method (then again, so did using Net::CIDR). I don't know how 'real world' that file is, so I couldn't say how fair it is to use it in judging your module. Just one issue to keep in mind when solving this sort of problem :-)

    Update: Sorry, meant to reply to the root post. Also just noticed that this whole thread is a couple of years old, just saw it due to a recent post further down.

      To install: make a directory called NetAddr in ...perl/site/lib and copy the ip.pm file there as mentioned (this post for completness and because being a newbe it took me some amount of time)
      >When I checked the ppd build status, I saw that it failed on
      >several platforms (Win, Solaris,HP).
      It didnt seem to fail, just not pass all tests because some other module (Test::Pod) was not installed.... Is this so old that now a new module is used instead? Anyone knows which?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190615]
help
Chatterbox?
[1nickt]: Corion this looks good, from the pod: "there are 9000+ variations that are detected correctly in the test files (see t/data/* for most of them). If you can think of any that I do not cover, please let me know."
[TCLion]: some moron put the date like this : Mon Feb 20 09:31:30 2017
[Corion]: 1nickt: Yes, the module sounds promising indeed
[1nickt]: "putting the date in correct order" how?
[Corion]: TCLion: Whee ;)
[TCLion]: need to put like this : 2017-02-20 09:30:53
[1nickt]: That's why I asked if you are using DateTime. It has a large number of supporting modules (the author likes the term 'eco-system') so if you are already creating a DateTime obj from your dates, this module would read in the mnoron-formatted 1s seamlessly
[TCLion]: when I put the date together it looks like : 2017-Feb-24 (month is the problem)
[1nickt]: good luck, then.
[TCLion]: looking at DateTime documentation in monastery now

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2017-03-23 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (288 votes). Check out past polls.