http://www.perlmonks.org?node_id=1126513


in reply to regex statement to call variable value is not working??

Each element of @nets contains a newline character, while your target strings don't contain the newline character. See chomp.