Help for this page

Select Code to Download


  1. or download this
    
    $, = " \n";
    
  2. or download this
    open (FH, $ARGV[0]) or die ("could not open file");
    my @data = <FH>;
    
  3. or download this
    foreach my $data (@data)
    {
    ...
            my $value = $numbers[1];
            $myhash{$word} = $myhash{$word} + $value;
    }
    
  4. or download this
    while(my($key, $value) = each %myhash){
        print $key . ":" . $value . "\n";
    }
    
  5. or download this
    close (FH);