- or download this
my $dir = "/Path/to/a/data/directory";
my %hash;
...
return { $key => \@values };
}
- or download this
my $dir = "/Path/to/a/data/directory";
my %hash;
...
%{$hash{$file}} = (%{$hash{$file}}, %{hashify_line( $line )});
}
close $grep_fh or die "Error closing grep pipe: $!\n";
- or download this
my $cmd = "find $dir -type f -print | xargs grep '^' /dev/null";
open my $grep_fh, '-|', $cmd
or die "Can't grep: $!\n";