"select primary_ip from buddy_vips where machineIP=$vip"
$row->{machineIP} =~ /(\d+\.\d+\.\d+\.\d+)/
How to you expect machineIP to magically appear in the result of the SELECT statement? You only select primary_ip.
Alexander
In reply to Re^5: regex in perl
by afoken
in thread regex in perl
by user786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |