Perl_标准输入_STDIN
#!usr/bin/perl -w
use strict;
my @a=<STDIN>; #停止输入的时候按ctrl+D my $out="/dir/out"; open OUT,">$out" || die "$!\n"; foreach $a (@a) { print OUT "$a"; }
Perl_标准输入_STDIN
#!usr/bin/perl -w
use strict;
my @a=<STDIN>; #停止输入的时候按ctrl+D my $out="/dir/out"; open OUT,">$out" || die "$!\n"; foreach $a (@a) { print OUT "$a"; }