Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Break the foreach loop on count on 50 and then insert a new foreach loop

by ctilmes (Vicar)
on Nov 12, 2015 at 13:31 UTC ( #1147567=note: print w/replies, xml ) Need Help??


in reply to Break the foreach loop on count on 50 and then insert a new foreach loop

BTW, for this type of thing:
my $appendCmd = "iptablesAdm append"; $appendCmd .= " --type=rule"; $appendCmd .= " --table=filter"; $appendCmd .= " --chain=INPUT"; $appendCmd .= " --protocol=${protocol}"; $appendCmd .= " --domain=${domain}"; $appendCmd .= " --persist=yes";
you can just do this:
my $appendCmd = "iptablesAdm append" . " --type=rule" . " --table=filter" . " --chain=INPUT" . " --protocol=${protocol}" . " --domain=${domain}" . " --persist=yes";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-08-18 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?