Says tachyon:
Of course if you patched the module with XS and your C code there would be :-)
Not really. The C program is a complete program that solves this
one specific problem. There's nowhere in the Net::CIDR
interface to 'patch'; the module doesn't do what
this program does, and this program doesn't implement
any of the functions that Net::CIDR does.
Even if I did put it in, there wouldn't be
any benefit. At present, you could compile my program and
then use:
#!/usr/bin/perl
system("mjd-merge-blocks inputfile > outputfile");
Then you could call it a "Perl solution", but it wouldn't
really be one. Hacking my code into Net::CIDR
wouldn't be a "Perl solution" either.
--
Mark Dominus
Perl Paraphernalia
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|