You are viewing the version of this documentation from Perl 5.005_03. View the latest version
chdir EXPR

Changes the working directory to EXPR, if possible. If EXPR is omitted, changes to the user's home directory. Returns TRUE upon success, FALSE otherwise. See the example under die().