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 (Canon)
on Sep 14, 2012 at 17:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://993758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found