1、open(
my
$fh,
'>',
'fruit.out'
)
or
die
$!
$fh
$_
for
@output
2、open
(outfile,">>./outfile")
outfile
"$a"
close(outfile)
数组写入如下:
#从头开始写指乱
open(file,">fruit.txt")
#文件结知辩尾追加
open(file,">>fruit.txt")
file
"@arr"
Perl将值写入文件,冲郑参考稿首实例如下: 1、open( my $fh, '>', 'fruit.out' ) or die $!print $fh $_ for @output2、open (OUTFILE,">>./散敬颂outfile")print OUTFILE "$a"close(OUTFILE)数组写入如下: #从头开始写 open(FILE,">fruit.txt")...欢迎分享,转载请注明来源:内存溢出
评论列表(0条)