can someone help?

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


Date: Mon, 28 Feb 2005 11:14:56 -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:$!";

how come when i use this code i got a 500 internal server error ? how do i
solve this?



Relevant Pages

  • Re: cannot open and write file
    ... >use warnings; ... >use strict; ... print OUTF "anc"; ...
    (comp.lang.perl.misc)
  • Re: cannot open and write file
    ... 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 ...
    (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)