File::Path::Expand - expand filenames
use File::Path::Expand; print expand_filename("~richardc/foo"); # prints "/home/richardc/foo"
File::Path::Expand expands user directories in filenames. For the simple case it's no more complex than s{^~/}{$HOME/}, but for other cases it consults getpwent and does the right thing.
getpwent
Richard Clamp <richardc@unixbeard.net>
Copyright (c) 2003, Richard Clamp. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install File::Path::Expand, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Path::Expand
CPAN shell
perl -MCPAN -e shell install File::Path::Expand
For more information on module installation, please visit the detailed CPAN module installation guide.