programming-examples/perl/File/Select a file handle.pl

9 lines
136 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
open (FILEHANDLE, ">hello.txt") or die ("Cannot open hello.txt");
select FILEHANDLE;
print "Hello!";
close (FILEHANDLE);