in reply to Back in the saddle...
Shouldn't the ^ at the begining be outside of the parens?
What is the result of the ifconfig command? That is, have you tried printing out the value of $ifconfig to see if it really is what you think it is?
Missing a \ before the first d for the IP address, and a \ before the second dot, btw. Oh, and take off the parens around the match part of the statment, methinks.
Should be something like ($junk, $ip_address) = $ifconfig =~ /regex/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Back in the saddle...
by gnubbs (Beadle) on Apr 04, 2003 at 22:51 UTC | |
by graff (Chancellor) on Apr 05, 2003 at 01:29 UTC |