diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-10 19:49:35 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-10 19:49:35 +0100 |
commit | 14648df7aca57da48999c7c6ae601d4edab0a0df (patch) | |
tree | 13649b74ed30f25a0cbc5bf4c2376c01f3686c9f | |
parent | 079f520913487f557070859b6be2cb484e8441fd (diff) | |
download | net_if-14648df7aca57da48999c7c6ae601d4edab0a0df.tar.gz net_if-14648df7aca57da48999c7c6ae601d4edab0a0df.tar.bz2 net_if-14648df7aca57da48999c7c6ae601d4edab0a0df.zip |
regex should be match the start of the line
-rwxr-xr-x | net_if | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ sub get_if_status { } while (<IFCONFIG>) { - if ($_ =~ m/$if: flags=([0-9]+)</) { + if ($_ =~ m/^$if: flags=([0-9]+)</) { if ($1 & 1) { push(@up, $if); } |