in reply to Text file opening problem

No such file or directory

This simply means that there is no file named "datebook.txt" in the current working directory.
Update: If you want to find out for sure what your "current working directory" is, then add this to the beginning of the script:
use Cwd; print getcwd(), "\n";
Cheers,
Rob