in reply to printing to new output files within a loop

Are you sure you didn't mean $_ as opposed to $$ ? $$ Is the pid of your current process which will not change during your loop, hence only one file. $_ is the current default value of your iteration. Or perhaps you meant $i?

  • Comment on Re: printing to new output files within a loop