Re: cannot open and write file

From: Roll (lie_huo_at_hotmail.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 11:10:21 -0500


#!/usr/bin/perl
use warnings;
use strict;
my $out = '/root/a.conf';
open(OUTF,">>", $out) or die "Cannot open $out for appending:$!";
print OUTF "anc";
close OUTF or die "Cannot close $out:$!";

can someone tell me how come after typing this code i got a 500 internal
server error ??
how do i solve this?



Relevant Pages

  • can someone help?
    ... use strict; ... print OUTF "anc"; ... close OUTF or die "Cannot close $out:$!"; ...
    (comp.lang.perl.misc)
  • cannot open and write file
    ... i want to try writing to a file. ... print OUTF "anc"; ... can anyone tell me y is this so did i miss some coding or it should be ...
    (comp.lang.perl.misc)