由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 再 次 请 教 : 关 于 writing to a file 用 Perl for CGI
相关主题
请 教 : 关 于 writing to a file 用 Perl for CGIperl oneliner hash疑问
这个perl的简单小程序为什么不work? (转载)[转载] 在CGI程序中有何好方法返回HTML
perl & apache - cannot use param and other stuff - Internal Server Error关于c++调用DOS 命令的问题,谢谢
这个 perl 输出的数字为什么自动加了换行?谢谢!弱问perl写网页buffer问题
[合集] 为啥显示的是页面源码? (转载)《Apache+MySQL+memcached+Perl开发高速开源网站》[PDF]
perl eval and ifPerl, PHP, Pathon, 那个好?
问几个关于网页和HTML的问题how to avoid security holes for perl CGI code using checkbo (转载)
Anyway to stop perl subroutines reading outside variable请推荐perl web framework
相关话题的讨论汇总
话题: cgi话题: file话题: perl话题: writing话题: print
进入Programming版参与讨论
1 (共1页)
b*h
发帖数: 353
1
上周曾问过这个问题,可能大家都去渡长周末了,只有一个人回了一下。到现在我这个
问题还没解决,请知道的朋友给指点一下。
这 是 我 的 CODE:
#!C:\perl\bin\perl.exe -wT
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $q = new CGI;
print $q->header;
print $q->start_html(-title=>'writing to a file');
open csv_file, "> /test.txt" or die "Could not open file$!";
print csv_file "It is a test!!!\n";
close csv_file;
print $q->end_html();
我 想 把 “It is a test!!!”写 到 Apache 的 DocumentRoot 下 一 个 叫 test.
txt 的文 件 里, 可 是 我 运 行 这 个 CODE 后, test.txt里 什 么 都 没 写 上
。 请
1 (共1页)
进入Programming版参与讨论
相关主题
请推荐perl web framework[合集] 为啥显示的是页面源码? (转载)
c写CGIperl eval and if
perl question问几个关于网页和HTML的问题
一个perl bug,求救,谢谢!Anyway to stop perl subroutines reading outside variable
请 教 : 关 于 writing to a file 用 Perl for CGIperl oneliner hash疑问
这个perl的简单小程序为什么不work? (转载)[转载] 在CGI程序中有何好方法返回HTML
perl & apache - cannot use param and other stuff - Internal Server Error关于c++调用DOS 命令的问题,谢谢
这个 perl 输出的数字为什么自动加了换行?谢谢!弱问perl写网页buffer问题
相关话题的讨论汇总
话题: cgi话题: file话题: perl话题: writing话题: print