in reply to call multiple perl scripts from within a perl scripts ?

You don't appear to be passing a file-name to the scripts, therefore you are probably using fixed filenames, unless you are generating them in some way in the scripts. Therefore it is most likely that you are overwriting the files on each loop iteration.

A few other observations:
The loop is probably bettern written as:
for my $file (<*.tgz>)) { $tar1->read($file); ... }
I don't see any error checking, anywhere. What if you cannot open the tar file? What if @filelist does not have the right number of files in it? What if any of the perl scripts fail? Some of these problems could cause your symptoms, possibily silently (depending on your scripts).

Replies are listed 'Best First'.
Re^2: call multiple perl scripts from within a perl scripts ?
by luckysing (Novice) on Aug 04, 2010 at 21:28 UTC
    Thanks for the suggestion that was exactly what I was doing wrong the text files were getting overwritten since two of the Perl scripts were not able to get the file names properly.