![]() |
|
XP is just a number | |
PerlMonks |
Re: Need help to parse the textby davidj (Priest) |
on Jun 17, 2004 at 05:20 UTC ( #367534=note: print w/replies, xml ) | Need Help?? |
I assume that the format of the ifconfig -a output will always be the same; that is, interface followed by interface information. If that is the case, then the following code sample will work for you.
NOTE: 1) the output of ifconfig -a has been stored in a file 2) the interface information is stored in a hash where the interface name is the key and its status is the value. hope this helps, davidj
In Section
Seekers of Perl Wisdom
|
|