http://qs321.pair.com?node_id=88805


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.
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