Khen~
Though it didnt error out as before, the result was not as I expected.
I did make some changes to the above script to make it run
1) my $privilege = "";
2) my $flags = ""
3) my $username = Win32::LoginName;
and the results is
the home dir for user, myself is
i.e. the homedir is not seen in the result.
Any idea?
BTW, how did this solve the error? whats the trick? Any idea?