Rast.pmを使うためにPERL5LIBを設定したが…

実用 Perlプログラミング 第2版

実用 Perlプログラミング 第2版

の初版のほうを持っているのですが(自分の技量には不釣合いな本ですが)、PERL5LIBに関しては『コロンで区切ったパスのリストをセットする』と書いてあるんですが、セミコロンじゃないの?と思って調べていたんですが、やっと答えを見つけました。こちらhttp://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/pod/perlrun.htmlにありました(英語)。

まぁWindowsではセミコロンと。ちゃんと調べたかったら


C:\>perl -V:path_sep
path_sep=';';
とやると。はいセミコロンですね。

で、Rast.pm。http://d.hatena.ne.jp/lightcyan/20061125#1164470869 で消してしまった


- module: Search::Rast
config:
encode: euc_jp
replace: 1
dir: /home/plagger/rast
ですが、

- module: Search::Rast
config:
encode: euc_jp
replace: 1
dir: c:/Perl/site/lib/Plagger/Plugin/Search/Rast
とパスだけ書き換えて、マイコンピュータ→プロパティの詳細設定タブ→環境変数(N)→新規で PERL5LIB c:/Perl/site/lib/Plagger/Plugin/Search を設定(パス区切りは'/'の方がいいのかな。って結局セミコロン調べた意味が無いよ…)。

で実行すると


Can't locate Rast.pm in @INC (@INC contains: C:\Perl\site\bin\lib C:/Perl/lib C:/Perl/site/lib .) at C:\Perl\site\lib\Plagger\Plugin\Search/Rast.pm line 7, line 855.
は消えたが、新たな問題発生。

Bareword "RAST_TYPE_STRING" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_TEXT_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_TYPE_STRING" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_TEXT_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_TYPE_STRING" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_TEXT_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_FULL_TEXT_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_TYPE_STRING" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_TEXT_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_TYPE_DATE" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_TYPE_STRING" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_PROPERTY_FLAG_TEXT_SEARCH" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 28, line 855.
Bareword "RAST_DB_RDWR" not allowed while "strict subs" in use at c:/Perl/site/lib/Plagger/Plugin/Search/Rast.pm line 70, line 855.
Compilation failed in require at C:\Perl\site\lib\Plagger\Plugin\Search/Rast.pm line 7, line 855.
BEGIN failed--compilation aborted at C:\Perl\site\lib\Plagger\Plugin\Search/Rast.pm line 7, line 855.
Compilation failed in require at C:/Perl/site/lib/Plagger.pm line 230, line 855.
とかエラーが出る。最初の一行のエラーメッセージをググってみたけどヒットせず。アルタビスタでも何も見つからず。どうすればいいんでしょうか?(ところではてなダイアリーでも長い行を表示する時、折り返さないでスクロールバー出してる人がいるけど、これもどうやるんでしょうか?ページのソース見ても<pre>タグが入ってるだけに見えるんだけど)
(2006/12/05追記: こっちに続きを書きました。まだ動いてないです…http://d.hatena.ne.jp/lightcyan/20061204#1165248811)