programming-examples/perl/File/Using file handle variable.pl

9 lines
133 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
open FILEHANDLE, "<file.txt" or die "Can not open file";
*FILEHANDLE2 = *FILEHANDLE;
while (<FILEHANDLE2>) {
print;
}