programming-examples/perl/File/Using file handle variable.pl
2019-11-15 12:59:38 +01:00

9 lines
133 B
Perl

open FILEHANDLE, "<file.txt" or die "Can not open file";
*FILEHANDLE2 = *FILEHANDLE;
while (<FILEHANDLE2>) {
print;
}