Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のperlの問題があります。このコードを取得して、test.pl に入れます。
my $str=shift; printf "$str", @ARGV;
次に、次のように実行します。
perl test.pl "x\tx%s\n%s" one two three
私にとって予想される出力は次のようになります。
x xone two
代わりに私は得た
x\sxone\ntwo
どこが間違っていますか?