in reply to Re^5: A complicated file parsing and 2D array/matrix problem.
in thread A file parsing and 2D array/matrix problem.
#!/usr/bin/perl use strict; use warnings; use List::Util qw/ max /; open my $fh, "<", 'SUPERLIST_PRODUCT' or die $!; my $spr_prod = do {local $/; <$fh>}; close $fh or die $!; my @spr_prod = $spr_prod =~ /\d+/g; open $fh, "<", 'SUPERLIST_SUBSTRATE' or die $!; my $spr_substr = do {local $/; <$fh>}; close $fh or die $!; my @spr_substrate = $spr_substr =~ /\d+/g; my @matrix; my $path = '.'; # (current directory - '.') or path to data files my @file = qw/list.txt/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: A complicated file parsing and 2D array/matrix problem.
by Kenosis (Priest) on Sep 06, 2012 at 01:31 UTC |