【perl】perl文件处理(一)——句柄

2020-07-01  本文已影响0人  虫虫工工队

句柄的定义

间接文件句柄

STDIN

print" input data:\n";
my $data=<STDIN>;
print"The data is $data\n";

STDOUT

print" here is the example\n";
print STDOUT"here is the example";

STDERR

自定义句柄

上一篇 下一篇

猜你喜欢

热点阅读