laziness, impatience, and hubris | |
PerlMonks |
Re: du with backticksby pc88mxer (Vicar) |
on Mar 20, 2008 at 05:09 UTC ( [id://675157]=note: print w/replies, xml ) | Need Help?? |
This is not your problem, but it might be of interest to know that ~-expansion is actually done by the shell. So, even though the following calls look like they do the same thing, the first two work as expected, but the last one doesn't:
Generally you are better off calling getpwnam() to get a user's home directory instead of using ~user.
In Section
Seekers of Perl Wisdom
|
|