Yes I understand the code and This is my understanding the code. while(<FILE>) { =In this I am reading the complete file with file handle. $interface = $1 if /^([\S]+)/; =this line will check the one or more non whitspace char and if ti fou +nd put the value in $1 and assign to $interface. print "$interface => $1\n" if /inet addr:([0-9.]+)/; =this line will check the address and if it found put the value in $1. But I am not able to check the condition on the first line.
In reply to Re^8: need to remove the extra line in regular expression
by laksh
in thread need to remove the extra line in regular expression
by ulaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |