Perl function:
chdir directory

Changes the working directory to directory, returning 1 if succesful. If unsuccesful, the function returns 0, and puts the error code in the magic variable $!. If no argument is given, chdir changes directory to the home directory.

Back to Perl

Log in or register to write something here or to contact authors.