Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Parsing Names in a Text File

by Masem (Monsignor)
on Jun 15, 2001 at 18:35 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found