Another way to do it...
#!/usr/bin/perl use Data::Dumper; my @paths = map { chomp; m{\|\s*([^|]+)$}; $1 } <DATA>; print Dumper \@paths; __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 tobyink
in thread Reading from files
by Hellhound4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |