in reply to Reading from files
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
|
|---|