in reply to Re: Interpolation of file handles in print
in thread Interpolation of file handles in print

But then I would change
for $x ( 0 .. 6 )
into
for $x ( 0 .. $#handles )