in reply to Changing path to home directory
I don't have a Windows machine at the ready, but File::HomeDir should work on various platforms.
use File::HomeDir (); my $HOME = File::HomeDir->my_home; chdir $HOME or die "Couldn't chdir $HOME: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing path to home directory
by ww (Archbishop) on Mar 05, 2015 at 02:17 UTC | |
by Discipulus (Canon) on Mar 05, 2015 at 09:59 UTC | |
by Anonymous Monk on Mar 05, 2015 at 02:27 UTC | |
by ww (Archbishop) on Mar 05, 2015 at 02:35 UTC |