作者:
flu (Crazy Rhythm)
2011-01-21 20:24:00下面的<>处在串行语境,读到EOF为止传回读到的每一行组成的串行(在非win32的shell, 要用单引号(')取代双引号(")执行)perl -we "my @t = <> ; print join q{,}, @t;"#下面的<>在纯量语境,读到\n为止perl -we "my $t = <> ; print $t";perl -we "my @t = scalar <> ; print @t"; #纯量语境