J
Jose Yimpho
Perl newbie here.. I'm experienced with other languages, but this is
my first grapple with Perl + Regular Expressions, and I could use some
help or a starting point on this problem.
I have a text file that contains lines like what's at the bottom of
this message. I would like to create a new file that contained
comma-separated values that contains the info from the file. Possible
entries are company name, street address, city, state, zip, phone,
fax, email, url, rep, membership type, business type, and major
products.
Thanks for your help,
Joe Laughlin
----------------------------------------
A Street Games
489 Park Ave
Idaho Idaho Falls ID 83402
Phone: 208-542-2824 Fax: 208-542-2824
(e-mail address removed)
Business Representative: Mike Antonson
Membership Type: C - Ret
Business type: Accessories, Board games, Collectable card games,
Family
games, Magazines, Miniatures, Retailer, Roleplaying games, Video
games,
Wargames, Comic Books
Major products: Role-Playing Games, Games Workshop Products, CCGs
2 Big Guyz
15901 Indian Head Hwy
Accokeek MD 20607
Phone: 240-210-0302
(e-mail address removed)
www.2bigguyz.com
Business Representative: Andrew Turlington
Membership Type: C - Ret
Business type: Accessories, Board games, Books, Collectable card
games,
Magazines, Miniatures, Retailer, Wargames, Comic Books
21st Century Comics
1531 S Harbor Blvd
Fullerton CA 92832
Phone: 714-992-6649 Fax: 714-992-6604
(e-mail address removed)
www.21stcenturycomics.com
Business Representative: Barry Short
Membership Type: C - Ret
Business type: Accessories, Books, Collectable card games, Other card
games,
Miniatures, Retailer, Roleplaying games, Wargames
Major products: Wizards of the Coast Products; Wizkids Products
-------------------------------------
my first grapple with Perl + Regular Expressions, and I could use some
help or a starting point on this problem.
I have a text file that contains lines like what's at the bottom of
this message. I would like to create a new file that contained
comma-separated values that contains the info from the file. Possible
entries are company name, street address, city, state, zip, phone,
fax, email, url, rep, membership type, business type, and major
products.
Thanks for your help,
Joe Laughlin
----------------------------------------
A Street Games
489 Park Ave
Idaho Idaho Falls ID 83402
Phone: 208-542-2824 Fax: 208-542-2824
(e-mail address removed)
Business Representative: Mike Antonson
Membership Type: C - Ret
Business type: Accessories, Board games, Collectable card games,
Family
games, Magazines, Miniatures, Retailer, Roleplaying games, Video
games,
Wargames, Comic Books
Major products: Role-Playing Games, Games Workshop Products, CCGs
2 Big Guyz
15901 Indian Head Hwy
Accokeek MD 20607
Phone: 240-210-0302
(e-mail address removed)
www.2bigguyz.com
Business Representative: Andrew Turlington
Membership Type: C - Ret
Business type: Accessories, Board games, Books, Collectable card
games,
Magazines, Miniatures, Retailer, Wargames, Comic Books
21st Century Comics
1531 S Harbor Blvd
Fullerton CA 92832
Phone: 714-992-6649 Fax: 714-992-6604
(e-mail address removed)
www.21stcenturycomics.com
Business Representative: Barry Short
Membership Type: C - Ret
Business type: Accessories, Books, Collectable card games, Other card
games,
Miniatures, Retailer, Roleplaying games, Wargames
Major products: Wizards of the Coast Products; Wizkids Products
-------------------------------------