in reply to Re: Can we use variable for pattern match and extraction
in thread Can we use variable for pattern match and extraction
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.ABC: while () { #print "entered into while loop\n"; if ($_ eq $net_extract) { $count = 1; print "hello\n"; }
|
|---|