On Apr 15, 2011, at 2:11 AM, Shlomi Fish wrote:

> 1. Don't use bareword file-handles.
> 
> 2. Use the three-args open:
> 
> open (my $file_our, '>>', 'cmdout') or die "Cannot open cmdout: $!";

        What about writing it like this:

open ('FILEOUT', '>>', 'cmdout') ||die "cant open cmdout: $! \n";

        Is that O.K.?

Marc

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to