Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: break out my foreach loop

by lidden (Curate)
on Sep 02, 2012 at 06:39 UTC ( #991235=note: print w/ replies, xml ) Need Help??


in reply to break out my foreach loop

Put my $octet; # or $octet = undef before the loop and do die "Some message" unless $octet; after the loop.


Comment on Re: break out my foreach loop
Select or Download Code
Replies are listed 'Best First'.
Re^2: break out my foreach loop
by hmb104 (Sexton) on Sep 02, 2012 at 06:52 UTC

    Thanks lidden, it works as intended. Is there a way to remove the error line from the die() msg?

    ERROR: IP not range: at /home/skippy/ip2log.pl line 177.

    Thanks for the heads up

      die "Some message\n";

        Thank you :)

        -hmb

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (18)
As of 2015-07-30 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls