View Single Post
Old 09-13-2007, 08:56 PM  
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
Any perl programmers here? have a question.

Don't ask why...long story.

Need to insert a line into an array to be written to file (or more accurately a file containing a list)

So, example, I have a file containing:
a
b
c
d
e
f

I need to insert z on the 4th line ex:
a
b
c
d
z
e
f


Any ideas?
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote