in reply to How to convert unix ~path (tilde) to full path
If the program is not running as the user, $ENV{HOME} won't work. getpwnam returns a list with home directory at index seven.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to convert unix ~path (tilde) to full path
by Rich36 (Chaplain) on Apr 05, 2002 at 17:23 UTC |