シングルクォートとダブルクォート
ダブルクォートは変数展開と逆スラッシュを解釈する。シングルクォートは文字として扱う。
my $test = 'This is test'; my $single = '$test\t'; my $double= "$test\t"; print $single; print $double; #出力. #$test\tThis is test
ダブルクォートは変数展開と逆スラッシュを解釈する。シングルクォートは文字として扱う。
my $test = 'This is test'; my $single = '$test\t'; my $double= "$test\t"; print $single; print $double; #出力. #$test\tThis is test