in reply to Re: help, please!
in thread Database file does not open

Suerly, you mean "$!" , not "$?".

To be canonical, the open should be:

open (FILEDB, "<", $DATABASEFILE) or die "<b>Sorry, can't open data +base file $DATABASEFILE:<br/>$!</b>";
$? deals with errors from child processes.
$! deals with OS errors, including file open errors.

     Theory is when you know something, but it doesn't work.
    Practice is when something works, but you don't know why it works.
    Programmers combine Theory and Practice: Nothing works and they don't know why.         -Anonymous

Replies are listed 'Best First'.
Re^3: help, please!
by Karlmann (Initiate) on Mar 14, 2010 at 05:12 UTC
    Thank you very much, Net. The script cannot find the text file and I have now something to work with. Your help is much appreciated.
    Karl I forgot a closing forward slash on the path to the directory with the result that it was looking for the directorytextfile.txt as the file name. Adding this $! is a great idea. Thanks again!