in reply to what is filehandle's data type

It's a GLOB:

use strict; use warnings; my $str; open my $fileHandle, '>', \$str; print ref $fileHandle;

Prints:

GLOB

\*FH passes a reference to a GLOB to function.


Perl reduces RSI - it saves typing