in reply to Re^3: How do I change directory to root directory
in thread How do I change directory to root directory

It does not work I tried it and keep getting a message
No such file or directory Maybe I have my syntax wrong?:

my $file ="/opt/directoryname/directoryname/directoryname/sever/default/log/log.2005.03.04";
  • Comment on Re^4: How do I change directory to root directory

Replies are listed 'Best First'.
Re^5: How do I change directory to root directory
by amw1 (Friar) on Mar 04, 2005 at 17:58 UTC
    Are you trying to open file? If so what is the error message you are getting when you try to open it?
      Yes I'm trying to open the file and I get a message file/direcory not found.
      When I put in a test file that is in the same directory however it is being opened. It's just not opening the file from a different directory even when I put in the full path.