in reply to Re^2: load a file in memory and extract parts
in thread load a file in memory and extract parts
use warnings; use strict; my @file_array = qw(a|b|c d|e|f); foreach my $row (0 .. @file_array - 1) { foreach my $column (split /\|/, $file_array[$row]) { print "$row $column\n"; } } __END__ 0 a 0 b 0 c 1 d 1 e 1 f
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: load a file in memory and extract parts
by healingtao (Novice) on May 06, 2015 at 17:17 UTC | |
by afoken (Chancellor) on May 06, 2015 at 19:31 UTC |