Help for this page

Select Code to Download


  1. or download this
     foreach $ip(@ip) {
       print $out "#" if(/\b$ip\b/i && !/^#/); #only one # at front of lin
    +e
       print $out $_;
     }
    
  2. or download this
     foreach $ip(@ip) {
       last if /^#/; # ALready has a hash . Note - LAST exists this loop
    ...
       last; # Remember to exit loop after one successful match
     }
    print $_; # Print onloy once.