Perl (Scripting) - Getting Started with File::Touch

by
Jeremy Canfield |
Updated: November 06 2020
| Perl (Scripting) articles
The File::Touch module can be used to create (touch) files, and to update the last accessed and last modified datetime of a file. You may need to install the File::Touch module on your system. Here is how you would create a new file using File::Touch.
#!/usr/bin/perl
use strict;
use warnings;
use File::Touch;
touch('foo.txt');
Did you find this article helpful?
If so, consider buying me a coffee over at