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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 6c29e8 in the box below so that we can be sure you are a human.