SPUG: Get the local IP address?

Atom Powers atom.powers at gmail.com
Wed Jul 20 15:46:53 PDT 2005


I know. I was just hoping for a simpler solution.
Regex is so easy to get wrong...

On 7/20/05, Bill Campbell <bill at celestial.com> wrote:
> On Wed, Jul 20, 2005, Atom Powers wrote:
> >On 7/20/05, Bill Campbell <bill at celestial.com> wrote:
> >
> >> I handle this with a module I wrote that scans the output of the ifconfig
> >> command with appropriate conversions based on the underlying OS.
> >>
> >
> >I was hoping to avoid parsing ifconfig. But I haven't found any other way.
> 
> It's not too difficult with a few regular expressions.
> 
> Bill
> --
> INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
> UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
> FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
> URL: http://www.celestial.com/
> 
> Anyone who cannot cope with mathematics is not fully human.  At best he
> is a tolerable subhuman who has learned to wear shoes, bathe and not
> make messes in the house.
>                 -- Lazarus Long, "Time Enough for Love"
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
>      POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>     MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med
>     WEB PAGE: http://seattleperl.org/
> 


-- 
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--


More information about the spug-list mailing list