Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- PERL 4.0 Reference Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     chdir(EXPR)

     chdir EXPR

             Changes the working directory to EXPR, if  possible.
             If  EXPR  is  omitted,  changes  to  home directory.
             Returns 1 upon success, 0  otherwise.   See  example
             under die.

             On MS-DOS, the path  and/or  the  directory  can  be
             specified.

             chdir "c:/junk/subdir";
             chdir "e:";
             chdir "abc/xyz";

             The first of these changes  the  default  drive  and
             directory.  The second changes to the default direc-
             tory on drive E:.  The third changes  the  directory
             on  the  current drive.  As with all filenames, for-
             ward slashes are recommended inside perl.  (See  the
             section on MS-DOS.)

See Also: chroot

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson