以下のように私のtest.plスクリプト。
#!C:\Perl\bin\perl.exe
use strict;
use warnings;
sub printargs
{
print "@_\n";
}
&printargs("hello", "world"); # Example prints "hello world"
に置き換えprintargs("hello", "world");
た場合print($a, $b);
。
コマンドラインでperltest.plhelloworldを実行するときに'hello'、'world'を$a、$bに渡す方法ありがとうございます。