Help for this page

Select Code to Download


  1. or download this
        open(FILE, '/location/data/p4.txt') or die "Cant't open file: $!\n
    +";
    
  2. or download this
        use strict;
        use warnings;
    ...
        # ...
    
        close $fh;
    
  3. or download this
        my %myhash = ();
        my @data = ();
    ...
        foreach (@data)    {
            %myhash = (@data => $k++);
        }
    
  4. or download this
        my %total_values_by;
    
    ...
            chomp $value;
            $total_values_by{$value}++;
        }