When that happens, what happens with the error message?

The error message remains but it will be printed only if the file cannot be opened for some reason e.g. the file does not exist. That is what the or is there for.

but I am as much a *nix beginner as a Perl beginner

Stick with Perl and it will pay off in the long term. You will find that it is the one true glue language for any OS. Perl grew out of the Unix environment so knowing *nix helps greatly.

Best wishes in your journey to mastering Perl.

alfred,



Doug Essinger-Hileman wrote:

On 13 Jan 2005 at 7:58, JupiterHost.Net wrote:



open (CONTROL1, "<test.cont");


always always test to see if it opened or not: (and don't use double
quotes when nothgin is beinf interpolated so Perl doesn't have to
check it to see if somethign needs interpolated)

open CONTROL1, '<test.cont' or die "Could not open test.cont: $!";



Thanks to everyone who offered help; the script is now working as intended. But I have one question regarding the testing.


The script will be scheduled to run every Saturday at noon. When that happens, what happens with the error message? I realize that this is probably rather obvious to those who have worked at *nix for a while, but I am as much a *nix beginner as a Perl beginner.

Doug




-- Perl is my reason for following the Sun;



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to