- or download this
my $content = $response->content;
my @network = split(/\n/,$content);
...
foreach (@network) {
system("ipset add temp_$set_name $_");
}
- or download this
...
foreach ( $response->content =~ /$regex/g ) {
system("ipset add temp_$set_name $_");
}
- or download this
system("ipset create temp_$set_name $set_type");
foreach (@network) {
...
system("ipset destroy temp_$set_name");
my $cron_notice = "IPSet: $set_name updated (as of: $d
+ate_now).";
system("logger", "-p", "cron.notice", $cron_notice);
- or download this
0 == system 'ipset', 'create', "temp_$set_name", $set_
+type
or warn "Cannot execute ipset because: $?";
- or download this
@dates_last = $fh->getlines;
@dates_last = map(m/^(\d+).*$/,@dates_last);
- or download this
@dates_last = map /^(\d+)/, $fh->getlines;
- or download this
@dates_last = split(/ /,"0 " x $urls_number)
- or download this
@dates_last = ( 0 ) x $urls_number
- or download this
'(^([0-9]{1,3}\.){3}[0-9]{1,3}).*$',
...
'^(\d.*\d).*$',
...
'(.*)',
- or download this
qr/(^([0-9]{1,3}\.){3}[0-9]{1,3})/,
...
qr/^(\d.*\d)/,
...
qr/(.*)/,
- or download this
@dates_now = map {$_ . "\n"} @dates_now;
print $fh @dates_now;
- or download this
print $fh map "$_\n", @dates_now;