programming-examples/perl/File/open (FILEHANDLE2, &=FILEHANDLE).pl

8 lines
140 B
Perl
Raw Normal View History

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