develooper Front page | perl.beginners | Postings from February 2002

In line editing? Streaming through perl directly into anotherapp?

Thread Next
From:
Steven M. Klass
Date:
February 28, 2002 12:15
Subject:
In line editing? Streaming through perl directly into anotherapp?
Message ID:
200202282015.g1SKFIc16929@vivids1.nsc.com
Hi all

	Ok, my tool is comming along nicely, but here is where I am stuck at.  I 
currently am opening a file and reading the contents.  Then I open a second 
file, where I put my modification to the first file. Then this file is fed to 
the destination tool.  I think this is a BIT redundant and stupid but I don't 
know how else to inline edit it.  My thoughts are something along this

open File
read in line by line, making my changes as neccessary into a buffer?
Start my tool and pump my buffer into it? (Memory Hog)

Or 
Open file
Start tool
Read line by line, edit as neccessary
Feed line by line my data into the tool


Can anyone enlightenmen me on how to best do this??

Thanks so much

-- 

 Steven M. Klass
 Physical Design Manager

 National Semiconductor Corp
 7400 W. Detroit Street
 Suite 170
 Chandler AZ 85226

 Ph:480-753-2503
 Fax:480-705-6407

 steven.klass@nsc.com
 http://www.nsc.com


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About