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

9 lines
136 B
Perl

open (FILEHANDLE, ">hello.txt") or die ("Cannot open hello.txt");
select FILEHANDLE;
print "Hello!";
close (FILEHANDLE);