Re: cannot open and write file
From: Roll (lie_huo_at_hotmail.com)
Date: 02/28/05
- Next message: Alexandre Jaquet: "system (date) in perl"
- Previous message: Ganchrow Harris Peck: "Re: CGI System Call in perl"
- Next in thread: Paul Lalli: "Re: cannot open and write file"
- Reply: Paul Lalli: "Re: cannot open and write file"
- Reply: Henry Law: "Re: cannot open and write file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: Alexandre Jaquet: "system (date) in perl"
- Previous message: Ganchrow Harris Peck: "Re: CGI System Call in perl"
- Next in thread: Paul Lalli: "Re: cannot open and write file"
- Reply: Paul Lalli: "Re: cannot open and write file"
- Reply: Henry Law: "Re: cannot open and write file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|