<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
#!/usr/local/bin/perl
# Chad Adams  03-Jan-93  build newsgroups dbm file for gonntp
# build-newsgroups-db /usr/local/news/newsgroups dotall-file
#
#   *********** run this with &quot;rebuild&quot; script *************
#
dbmopen(nga, &quot;../usr/lib/newsgroups&quot;, 0644);
while(&lt;&gt;) {
	chop;
	($ng, @rest) = split(/[ \t]/);
	while($#rest &gt; -1 &amp;&amp; @rest[0] eq &#x27;&#x27;) { shift(@rest) }
	$d = join(&#x27; &#x27;, @rest);
	print &quot;$ng - &gt;$d&lt;\n&quot;;
	$nga{$ng} = $d;
}
dbmclose(nga);
</p>
</card>
</wml>
