On Oct 21, 2005, at 8:39, Beast wrote:

#!/usr/bin/perl
use strict;

my $log = '/non/existence/dir/test.log';
my $msg = "test";
&write_log($msg);

In addition to the issue with "||" I addressed in another message, please do not use "&" in sub calls unless you know what you are doing (see perlsub). Regular sub calls are written this way:

    write_log($msg);

-- fxn


--
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