Help for this page

Select Code to Download


  1. or download this
        %file2 = 'Source.txt' ;
        open(INFO, "<%file2" ) ;
    
  2. or download this
        open(INFO, '<Source.txt');
    
  3. or download this
        my %table;
        open(IN, '<Source.txt') or die;
    ...
            my($ip, $country) = split(' ', $_, 2);
            $table{$ip} = $country;
        }
    
  4. or download this
        open(OUT, '>>conversion.txt') or die;
        foreach $line1 (@lines1) {
    ...
            }
        }
        close OUT;