programming-examples/perl/File/open (FILEHANDLE2, &=FILEHANDLE).pl
2019-11-15 12:59:38 +01:00

8 lines
140 B
Perl

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