Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Parsing Text Help

Status
Not open for further replies.

DMG2000

Programmer
Aug 13, 2000
52
0
0
US
Hi:
I am new to perl and cgi, atho am experienced with vb and asp, so bear with me:

I need to take a text file generated from a db of users@domains and I need to accomplish two things:
1>
Seperate the users@domains so that output is like
domain1:user1,user2,user3
domain2:user1,user2,user3
and 2>
Seperately parse the text file into line number variables for each address and group by 5 lines like
@group1
var1 = user1
var2 = user2
var3 = user3
var4 = user4
var5 = var5
@group2
var6 = user6
var7 = user7
so forth indefine till eof

Is there any one who can help me with this please? I have a feeling its something super simple. Thanks!

Shawn (DMG2000)
compute_x@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top