Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Parsing Names in a Text File

by lemming (Priest)
on Jun 15, 2001 at 18:33 UTC ( #88803=note: print w/replies, xml ) Need Help??


in reply to Parsing Names in a Text File

Check Name Parsing from early this yeat for more on this subject. It will give more cases to think about.

update:
I just looked at your strings a bit more closely.
Why don't you split on the "|" and get the second value?

($something, $name, $junk) = split(/\|/, $line, 3);
There are better ways of writing that split, but I'm running on no sleep.

update on update: looks like more people gave the split answer while I did that...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-08-10 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?