#! /usr/bin/perl # # tcbn_perl_delete.pl # # Oct/21/2010 # --------------------------------------------------------------------- use strict; use warnings; # use TokyoCabinet; # use CGI qw (:standard); # use DBI; use lib '/var/www/data_base/common/perl_common'; use cgi_manipulate; # # --------------------------------------------------------------------- my $file_in = '/var/tmp/tokyo_cabinet/cities.tcb'; # my $bdb = TokyoCabinet::BDB->new(); if(!$bdb->open($file_in, $bdb->OWRITER | $bdb->OCREAT)){ my $ecode = $bdb->ecode(); printf STDERR ("open error: %s\n", $bdb->errmsg($ecode)); } # # print "Content-type: text/html\n\n"; # # my @arry_bb = cgi_manipulate::parse_parameter (); # print "*** tcbn_perl_delete.pl *** start ***
"; # my $it=0; foreach (@{$arry_bb[0]}) { my $id = $arry_bb[0][$it]; print "$id
"; $bdb->out ($id); $it++; } # print "*** tcbn_perl_delete.pl *** end ***
"; # # --------------------------------------------------------------------- #