File::Path::Expand3pm
Expand filenames
Usage
use File::Path::Expand;print expand_filename("~richardc/foo"); # prints "/home/richardc/foo"
Overview
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.
Releases
11 releases since Debian 4.0 (Etch); the text changed 5 times.