in reply to How to convert unix ~path (tilde) to full path
would probably do the trick.use File::Spec; my $FileName; my $homedir = $ENV{HOME}; if ($FileName =~ /^~/) { $FileName =~ s/^~//; $FileName = File::Spec->catfile($homedir, $FileName); }
-><- -><- -><- -><- -><-
All things are Perfect
To every last Flaw
And bound in accord
With Eris's Law
- HBT; The Book of Advice, 1:7
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to convert unix ~path (tilde) to full path
by Kanji (Parson) on Apr 05, 2002 at 17:22 UTC | |
|
Re: Re: How to convert unix ~path (tilde) to full path
by jeffenstein (Hermit) on Apr 05, 2002 at 17:27 UTC |