[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: PATCH 5.005_63 Document super-obscure feature of chdir()
>But the explicit algorithm should be mentioned too, since "home
>directory" is a concept with a very narrow scope. (Which is a pity...)
I really don't think it should be spelt out. I don't want to lock
us in in case the VMS people have their own notions, for example.
=item chdir [EXPR]
This function changes the current process's working directory
to I<EXPR>, if possible. If I<EXPR> is omitted, the caller's
home directory is used. The function returns true upon success,
false otherwise, with the error code in C<$!>.
chdir "$prefix/lib" or die "Can't cd to $prefix/lib: $!";
See also the standard Cwd module, which lets you keep track of
your current directory automatically.
--tom
- Follow-Ups from:
-
Ilya Zakharevich <ilya@math.ohio-state.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]