Help for this page

Select Code to Download


  1. or download this
                    my $content = $response->content;
                    my @network = split(/\n/,$content);
    ...
                    foreach (@network) {
                            system("ipset add temp_$set_name $_");
                            }
    
  2. or download this
                    ...
    
                    foreach ( $response->content =~ /$regex/g ) {
                            system("ipset add temp_$set_name $_");
                            }
    
  3. 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);
    
  4. or download this
                    0 == system 'ipset', 'create', "temp_$set_name", $set_
    +type
                        or warn "Cannot execute ipset because: $?";
    
  5. or download this
        @dates_last = $fh->getlines;
        @dates_last = map(m/^(\d+).*$/,@dates_last);
    
  6. or download this
        @dates_last = map /^(\d+)/, $fh->getlines;
    
  7. or download this
        @dates_last = split(/ /,"0 " x $urls_number)
    
  8. or download this
        @dates_last = ( 0 ) x $urls_number
    
  9. or download this
              '(^([0-9]{1,3}\.){3}[0-9]{1,3}).*$', 
    ...
            '^(\d.*\d).*$',
    ...
            '(.*)',
    
  10. or download this
              qr/(^([0-9]{1,3}\.){3}[0-9]{1,3})/, 
    ...
            qr/^(\d.*\d)/,
    ...
            qr/(.*)/,
    
  11. or download this
        @dates_now = map {$_ . "\n"} @dates_now;
        print $fh @dates_now;
    
  12. or download this
        print $fh map "$_\n", @dates_now;