CGI.pmでけつまづいた。

まず、ソース。

use CGI qw/:standard/;

my $c = CGI->new();
my $v = $c->Vars();

print $c->start_html(-title=>$v->{title});

print start_html(-title=>$v->{title});

これだけのソースなんですけれど。

print $c->start_html(-title=>$v->{title});

こっちは、渡された変数が正しく表示されるんですけれど。

print start_html(-title=>$v->{title});

こっちは、文字化けするんですよね。

ちなみに"ニュース"って文字列が、��‹ュースって感じで。

Varsで受け取った値なので、param系のdecode周りの問題と同じなんかなぁ? 

原因特定は、また今度。