Perl (Scripting) - Home Directory

by
Jeremy Canfield |
Updated: July 16 2024
| Perl (Scripting) articles
File::HomeDir can be used to return a users home directory.
#!/usr/bin/perl
use strict;
use warnings;
use File::HomeDir;
my $home = File::HomeDir->my_home;
print "home directory = $home \n";
Did you find this article helpful?
If so, consider buying me a coffee over at