in reply to Re^2: Unable to write output to file taken as input from command line
in thread Unable to write output to file taken as input from command line

Regarding the use of @ARGV to get file names, see my reply above.

I have to rephrase choroba 's initial question: what is ins supposed to do? Also, what do you expect/intend to accomplish with the code (oh oh oh \%T)? (Is that supposed to be some sort of inside joke?)

If the input file contained just one line of data (e.g. "M19,Q,P,"), what would you want to see in the output file? (Be specific.)