in reply to Re^3: print out
in thread File names with interpolated variables

thanks came to a solution
while (<>) { my $i++; something open (OUT, ">newnames.$i");