my %table; while (<DATA>) { chomp; my @f = split / \| /; my $i = 0; while(@f){ push @{$table{$i}}, shift @f; ++$i; } } use Data::Dumper; print Dumper \%table; print "\n=>> Paths:\n", join $/, @{$table{4}}; __DATA__ This | Is | An | Entry | //Path/To/File.pdf This | Is | Entry | 2 | //Path/To/File2.pdf
In reply to Re: Reading from files
by Anonymous Monk
in thread Reading from files
by Hellhound4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |