Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.

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?
[Corion]: ... spend time on if I only want to provide a short patch
[haukex]: Corion: Yes exactly, in the author tests I don't worry about portability as much, I also don't list the author tests' dependencies in Makefile.PL
[haukex]: I figure someone who wants to contribute will know how to install the missing modules ;-) Not the nicest way to go but I don't think many people are using my modules yet
[ambrus]: Corion: some of these stupid syntax highlighters assume that too. just look at the table in http://perldoc. perl.org/ functions/pack. html for example.
[haukex]: ..."yet" ;-) I haven't had to deal with Dist::Zilla yet but I've heard about how it's a big setup

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-02-27 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.