|more useful options|
break out my foreach loopby hmb104 (Sexton)
|on Sep 02, 2012 at 06:27 UTC||Need Help??|
hmb104 has asked for the
wisdom of the Perl Monks concerning the following question:
How I can break out my foreach loop?
I'm checking if IP exists on a Cisco routing table, if it does then we can get more info. I want to say if the IP doesn't exist then break the loop with error. I have the following and it works great until I enter a non-valid IP which doesn't exist on my router:
How I can add to say if m/^Routing entry for / didn't show up in all lines then die()? I have tried many ways and it never works