in reply to Re: Can we use variable for pattern match and extraction
in thread Can we use variable for pattern match and extraction

And the other thing that might be what you want is:
ABC: while () { #print "entered into while loop\n"; if ($_ eq $net_extract) { $count = 1; print "hello\n"; }
These are 2 quite different approaches though, kvale's will execute the loop if any part of $_ matches $net_extract, whereas the in the code above the loop will only execute if $_ and $net_extract match exactly.

"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!