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.
小さなテストスクリプトを書きました。
#!/usr/bin/perl -w use strict; my $head="a b"; sub test { my @arr=split / /,@_; print $arr[0]; } test $head;
代わりに、出力は1実際に期待していaます。誰がどこが間違っているのか教えてもらえますか
1
a