perl 外部プログラムの実行 exec

#excec関数による実行
#exec.pl

#lsを実行
exec("ls");
print "エラーが発生しました:$!\n";

初めてのPerl 第6版

初めてのPerl 第6版