in reply to Parsing Names in a Text File
It's probably easily to use split since your file is nicely set up for that; Regex's aren't always the right cure for every problem.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
my @names; while (<FILE>) { my ( $a, $name, @rest ) = split /\|/; push @names, $name; }
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
In Section
Seekers of Perl Wisdom