IO::File

ファイルハンドル、5つ目の方法。
IO::Fileは、IO::Handleを継承してるので、ファイルハンドルを生成できる。

https://pointoht.ti-da.net/e8904484.html
ファイルハンドルの概念を理解する - Perlゼミ - Perl元気塾のPerl講座

IO__File.plで、

と書く。

$ vi IO__File.pl
$ perl IO__File.pl
$ cat test.txt
ABCDE
$

IO::Fileで書き込めた。

Sample/perl/IO__File/IO__File/src/IO__File at master · bg1bgst333/Sample · GitHub