Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 having an uproarious good time at the Monastery: (7)
As of 2014-07-12 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls