Click to See Complete Forum and Search --> : Chdir


druss
01-24-2003, 12:33 PM
i cant seem to change the direct back to the home directory?


for example ill do the following:
chdir $datadir;
chdir $username;


and after that i dont know how to go back as if i never went there??


Thanks
Goran

jeffmott
01-24-2003, 03:39 PM
Use two periods to go back a directory.

chdir '..' or die $!;