Using IO::File to write string to a file : IO « File « Perl
- Perl
- File
- IO
Using IO::File to write string to a file
use IO::File;
$filehandle = new IO::File;
$filehandle->open(">hello.txt") or die "Cannot open hello.txt";
$filehandle->print("Hello!");
$filehandle->close;
Related examples in the same category