Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re:x2 Net::Services (use Config?)

by grinder (Bishop)
on Oct 22, 2001 at 19:22 UTC ( #120556=note: print w/ replies, xml ) Need Help??


in reply to Re: Net::Services
in thread Net::Services

Do you mean something along the lines of:

use Config; BEGIN { die "You are socketless!\n" unless Config::config_vars(qw/d_socket/) eq 'define'; }

If you need really specific socket capabilities there is any number of fine-grained tests you could perform. Randomly cutting and pasting from perldoc Config gives things like

=over `d_getsbyname' From d_getsrvby.U: This variable conditionally defines the `HAS_GETSERVBYNAME' symbol, which indicates to the C program that the getservbyname() routine is available to look up services by their name. =cut

Is this what you were looking for?

--
g r i n d e r


Comment on Re:x2 Net::Services (use Config?)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-07-11 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls