Originally posted by senthilkumars
I do agree with Kevin. Shelling out to a Perl script may be unnecessary in your scenario.
You can simplify it by including the while loop inside your original script and opening one file at a time, if that meets the objective. Another way is to convert your script to a subroutine and call the sub-routine for each iteration of while loop (each file).
You would have met your objective. But this way, script would be more efficient :)
Comment