Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

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/ line 177.

    Thanks for the heads up

      die "Some message\n";

        Thank you :)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991235]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-04-24 06:04 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (433 votes). Check out past polls.