2007-07-22
シングルクォート 変数展開しない
ダブルクォート 変数展開する
バッククォート 外部プログラムの出力
hello.pl
$str = `world.pl`; #wold.pl の実行結果 "world" が入る print "hello $str!!"; #変数展開する
world.pl
$str = 'world'; #変数展開しない print $str;
実行結果
hello world!!