Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: perl need to do until on qx{tracert $ip}

by NetWallah (Abbot)
on Sep 14, 2012 at 17:04 UTC ( #993758=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $found = 0;
    for (qx<tracert $ipaddy>){
    ...
      found = 1;
      last;
    }
    
  2. or download this
      if (grep {/myhost/}, qx<tracert $ipaddy>){
          #Do something 
      }else{
          #Addr was not found in trace
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-08-31 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (363 votes), past polls