in reply to Re^3: regex in perl
in thread regex in perl
output :sub subroutine { my ($self,$vip) = @_; my @ip = (); my $sql_query = $self->{queryObj}->execute( "select primary_ip from buddy_vips where machineIP=$vip"); my $records = $self->{queryObj}->result(); for my $row (@$records){ if (my ($ip) = $row->{machineIP} =~ /(\d+\.\d+\.\d+\.\d+)/){ $row->{machineIP} = $ip; } push @ip, $row->{machineIP}; } return \@ip; }
Use of uninitialized value in pattern match (m//) at
Use of uninitialized value in pattern match (m//) at
Use of uninitialized value in pattern match (m//) at
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: regex in perl
by afoken (Chancellor) on Jun 15, 2016 at 05:58 UTC | |
|
Re^5: regex in perl
by Anonymous Monk on Jun 15, 2016 at 03:44 UTC | |
|
Re^5: regex in perl
by stevieb (Canon) on Jun 15, 2016 at 12:24 UTC |