perl エスケープ ¥

perl 超・基礎講座
http://homepage1.nifty.com/typhoon/at-cgi/perl_c1.html

注意する文字列
スクリプト 結果
$hello = "はじめてのCGI@nifty";
print $hello; Literal @nifty now requires backslash at C:\temp\copal.pl line 1, within string
Execution of C:\temp\copal.pl aborted due to compilation errors.

Perlでは、「$」、「"」などなど、記号のほとんどが特殊な意味を持っているので、文字列として使いたい場合には注意が必要です。このケースでは「@」が引っ掛かっています。
この対処法も、前述と同じく、

スクリプト 結果
$hello = "はじめてのCGI\@nifty";
print $hello; はじめてのCGI@nifty

と、「\」を入れて「@」を「記号じゃなくて文字そのものなのだよ〜」と、エスケープします。
(実はこの「@」は配列変数の印なので、変数を展開しない「'」作戦も通用したりする)