作者:
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"; #純量語境