Open a file from another file handle
open FILEHANDLE, "<file.txt" or die "Can not open file"; open (FILEHANDLE2, "<&FILEHANDLE"); while (<FILEHANDLE2>) { print; }