Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found