Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Parsing a file with multiple delimeters

by jdporter (Paladin)
on Jan 06, 2006 at 22:00 UTC ( [id://521656]=note: print w/replies, xml ) Need Help??


in reply to Parsing a file with multiple delimeters

Here's a simple way: (assumes reading lines from file F)

while (<F>) { chomp; my( $dll_file, $exe_files, $do_it ) = split /\|/; my @exe_files = split /,/, $exe_files; }
(I don't actually know what that third field means (the one that is 'YES' in your sample data))

Update: Thanks to fishbot_v2 for pointing out my missing /\|/!

We're building the house of the future together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-23 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found