>>>>> "JF" == J Finn <[EMAIL PROTECTED]> writes:

  JF> Thanks for your fast replies, however I think I should be more  
  JF> specific.  I'm using both linux and OS X and the ifconfig output is  
  JF> different for each platform (and I suspect it would be different for  
  JF> windows as well).  While i could write something that parses the  
  JF> ifconfig output for each platform, It would be nice if there was core  
  JF> functionality in perl to get this information for me that would know  
  JF> the Right Thing to Do based on whatever platform I am using at the  
  JF> time.  Is the only way to get this info thru ifconfig?

  JF> Also, the netmask idea is good, but I'd still need to pull the IP  
  JF> address and mask from ifconfig, right?  I'm trying to avoid parsing  
  JF> ifconfig.

did you search cpan? searching for ifconfig gets many hits including
Net-Ifconfig-Wrapper which seems to do what you want for getting ip
info. and searching for 'ip address' gets several useful looking hits to
mung ip info such as NetAddr::IP, Net::IP. this is obviously a common
issue and cpan has the usual multiple reinvented wheels.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to