2 # $Id: dbencode.pl,v 1.1 2000/01/25 18:51:03 fuku Exp $
3 # monthly.msg ¤ÎÀ¸À®¤ËɬÍ×¤Ê jfindex.db ¤ò JF ¤Î build ¥Þ¥·¥ó¤«¤é
4 # »ý¤Ã¤Æ¤¯¤ë¤È¤¤Ë¡¢°ìö plain text ¤ËÊÑ´¹¤·¤ÆžÁ÷¤¹¤ëºÝ¤Ë»È¤¤¤Þ¤¹¡£
5 # (Ä̾ï¤ÏɬÍפ¢¤ê¤Þ¤»¤ó)
7 # master.linux.or.jp -> news.amorph.rim.or.jp
10 my $indexfile = "./jfindex.db";
11 my $textfile = "./jfindex.txt";
15 tie(%hash, 'DB_File', $indexfile, O_RDWR|O_CREAT, 0644, $DB_BTREE) or die;
17 open(J,"$textfile") or die;
19 if (/^(.*\@\@....) (.*)$/) {