The Perl 5 module File::Path::Expand expands user directories in filenames.