Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Parsing Names in a Text File

by Masem (Monsignor)
on Jun 15, 2001 at 18:35 UTC ( #88805=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://88805]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2022-08-09 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?