#! /usr/bin/perl # # text_perl_delete.pl # # May/19/2011 # --------------------------------------------------------------------- use strict; use warnings; # use JSON; use CGI qw (:standard); # use lib '/var/www/data_base/common/perl_common'; use cgi_manipulate; use text_manipulate; # my $file_text = "/var/tmp/plain_text/cities.txt"; # # print "Content-type: text/html\n\n"; # my %dict_aa = text_manipulate::text_read_proc ($file_text); # # my @arry_bb = cgi_manipulate::parse_parameter (); # print "*** text_perl_delete.pl *** start ***
"; # foreach (@arry) my $it=0; foreach (@{$arry_bb[0]}) { my $id = $arry_bb[0][$it]; print "$id
"; %dict_aa=text_manipulate::dict_delete_proc ($id,%dict_aa); $it++; } # text_manipulate::text_write_proc ($file_text,%dict_aa); # print "*** text_perl_delete.pl *** end ***
"; # # --------------------------------------------------------------------- #