Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to require IPv6 support

by Anonymous Monk
on Aug 01, 2012 at 21:54 UTC ( #984904=note: print w/replies, xml ) Need Help??


in reply to How to require IPv6 support

?? http://perl5.git.perl.org/perl.git?a=search&h=HEAD&st=free&s=unpack_sockaddr_in6

Socket is dual-lived, just require the latest version

Replies are listed 'Best First'.
Re^2: How to require IPv6 support
by mbethke (Hermit) on Aug 01, 2012 at 22:25 UTC

    Nice, I hadn't seen that repo's web interface yet! That's a solution for core modules at least, but I still have the problem under (2) that even though it's the latest version it may not work.

    For now I think I'll work around it by simply skipping the corresponding tests and noting in the docs that you must have an IPv6-enabled Socket module to use this, but it would be nice to be able top specify this in a Module::* installer.

      For now I think I'll work around it by simply skipping the corresponding tests and noting in the docs that you must have an IPv6-enabled Socket module to use this,

      Sounds like the common practice :)

      but it would be nice to be able top specify this in a Module::* installer.

      Hmm, so a patch to Module::Depends - identify the dependencies of a distribution

      and a patch to Module::Install#requires

      So you end up with

      requires qw' Socket 2 unpack_sockaddr_in6 '; # requires qw' Socket 2 Socket::unpack_sockaddr_in6 ';

      That could work, and doesn't look particularly hard to implement.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984904]
help
Chatterbox?
[1nickt]: Discipulus, Corion, try this: D.A. Golden's blog
[Lady_Aleena]: Your Mother, that's the command line grep, not perl's grep.
[Your Mother]: …how on Earth could Perl’s grep recurse?
[Tanktalus]: perldigious: I'm not looking to get rich. I'm looking for interesting work, with good continuity of employment, and maintenance of our current lifestyle. (An improvement wouldn't be bad, either, but that's not a requirement ;) )
erix enjoys the confusion++
[Your Mother]: :P
[Tanktalus]: Without confusion, I'd be out of a job ;)
[Tanktalus]: Already. :D
[Lady_Aleena]: Your Mother, I wish it did have a way to put in a directory to search.
[Your Mother]: That’s silly. It’s a string op tool.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-05-23 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?