elavazhagan perl wrote:
On 2/11/10, John W. Krahn <jwkr...@shaw.ca> wrote:
elavazhagan perl wrote:
I have a program which reads the input file,updates once and outputs in
a new file.
Ex.The first line L1 will be updated to L2.
I need to put this into a loop so that the scripts will be invoked 1000
times and the output contains the appended data(L1 TO L1000).
Please can you suggest few methods.
It is not clear from your description or from your code exactly what you
want to do. Do you want 1,000 separate files or one file with the data
replicated 1,000 times or something else?
I will try my best to make you clear.
Once we execute the script,it should generate the data for the 1000
lines.Now the script just converts the data for a single line
The data you provided has 156 "lines" in it. Do you consider all that
data to be just one "line"?
i.e Line1 will
be converted to line 2 and some increaments.
In order to get my desired data,I need to execute the script 1000 times,and
each output will be appended in a new file which will contain the whole
data.
I am trying to update the script so that for a single execution,it will
produce the whole data.
Hope I make it clear.Please let me know if any ambiguityon this.
What you want sounds easy enough to do. If you could just clear up what
you mean by "line"?
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity. -- Damian Conway
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/