<?xml version="1.0" encoding="windows-1252"?>
<node id="993753" title="perl need to do until on qx{tracert $ip}" created="2012-09-14 12:23:29" updated="2012-09-14 12:23:29">
<type id="115">
perlquestion</type>
<author id="972305">
diamondsandperls</author>
<data>
<field name="doctext">
I am having problems i need to do a traceroute until my regex match is met i understand how qx works but my research indicates that there is a way i can use open maybe to accomplish what i need to accomplish.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;code&gt;
#!perl

use strict;
use warnings;

my $trace;
my $ipaddy = "8.8.8.8"; #example

do {

$trace = qx{tracert $ipaddy};

until ($trace =~ /myhost/)
}

&lt;/code&gt;</field>
</data>
</node>
