Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/chdir

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl caller CHECK Keywords The chdir keyword chdir changeds the working directory to the new destination in EXPRESSION. Without EXPRESSION, it changes to the directory defined in $ENV{HOME}, if set. If this is also not set, it changes to $ENV{LOGDIR}. (On VMS, $ENV{SYS$LOGIN} is also checked.) chdir returns true on success and false otherwise. If the operating system supports fchdir(2), a DIRHANDLE or FILEHANDLE can also be used. If this is not the case, an exception is raised. Syntax chdir DIRHANDLE chdir EXPRESSION chdir FILEHANDLE chdir Examples chdir \ Perl caller CHECK Keywords