#! /usr/bin/perl # # mongo_read.pl # # Jun/25/2012 # # ---------------------------------------------------------------- use strict; use warnings; use utf8; use Encode; use MongoDB; use MongoDB::OID; use lib '/var/www/data_base/common/perl_common'; use text_manipulate; use mongo_manipulate; # ---------------------------------------------------------------- # print (encode ('utf-8',"*** 開始 ***\n")); my $conn = MongoDB::Connection->new( host => 'localhost', port => 27017 ); my $db = $conn->city_db; my $col = $db -> saitama; my %dict_aa = mongo_manipulate::mongo_to_dict_proc ($col); text_manipulate::dict_display_proc (%dict_aa); print (encode ('utf-8',"*** 終了 ***\n")); exit 0; # ----------------------------------------------------------------