Help for this page
my $fn = 'file.dat'; ... print $fh $img }
... while( my $img = <$fh> ) { # read one record ... print $ih $img } ...