<small id="8iago"></small>
        1. ###########################
          #  multi.pl
          
          use strict;
          use HTML::Template;
          
          my(%t,@fld,$n,$template,@loop);
          print "Please input filename=";
          chop($t{root}=<STDIN>);
          $t{tmpl} = 'index.html';
          $t{inputf} = $t{root} . '.txt';
          
          open(IN,"names.txt") or die "Can't open the file names.txt.\n";
          while(<IN>){
              if ( /^NAME\s/ ) {
                  @fld = split;
                  $t{list}{$fld[1]} = $fld[2];
              }
          }
          close(IN);
          
          $template = HTML::Template->new(filename => $t{tmpl});
          @loop = ();
          
          $t{htmfile} = $t{root} . '.htm';
          
          $t{flag} = 1;
          open(IN,"$t{inputf}") or die "Can't open the file $t{inputf}";
          while(<IN>){
              next if $. == 1;
              next if length($_) < 2;
              if ( $t{flag} == 1 ) {
                  $t{flag} = 2;
                  push(@{ $t{N1s} },$_);
                  $t{N11} = $_;
              } elsif ($t{flag} == 2) {
                  $t{clist}{$t{N11}} = $_;
                  $t{flag} = 3;
              } elsif ($t{flag} == 3) {
                  $t{elist}{$t{N11}} = $_;
                  $t{flag} = 1;
              } 
          }
          close(IN);
          
          @{ $t{NN} } = sort {lc($a) cmp lc($b)} @{ $t{N1s} };
          #@{ $t{NN} } = @{ $t{N1s} };
          
          for $n ( 0 .. $#{ $t{NN} } ) {
              $t{N1} = $t{NN}[$n];
              $t{c1} = $t{clist}{$t{N1}};
              $t{e1} = $t{elist}{$t{N1}};
              my %row = (
                      N1 => $t{N1},
                      C1 => $t{c1},
                      E1 => $t{e1}
              );
              push(@loop, \%row);
          }
          
          $t{etitle} = uc($t{root});
          $template->param(std_loop => \@loop);
          $template->param(ename => $t{etitle});
          $template->param(cname => $t{list}{$t{etitle}});
          open(OUT,">$t{htmfile}");
          print OUT $template->output;
          close(OUT);
          
          print "The output file is $t{htmfile}\n";
          
          __END__;
          
          <small id="8iago"></small>
              1. 欧美性猛交XXX性大交3,日日夜夜久久久,亚洲无码精品一区二区 | www.亚洲色,免费的性生活片,欧美淫荡网 | 中文字幕黑人,xxxxwwww日本免费,免费在线观看操逼视频 | 无码少妇高潮,欧美精品电影在线观看,中文字幕在线观看网址 | 性生交大片免费看A,欧美成人性生活,亚洲天堂最新 | 人人看人人干,张柏芝54张无删码艳照在线播放,色欲久久99国产精品久久久久久 | 午夜一区二区三区免费,全黄裸体做爰视频,国产一区二区在线看片 | 亚洲中文在线电影,女人被添荫蒂视频y,亚洲自拍在线观看 | 四虎A片,女人被舔全过程免费视频,国产高清视频在线观看 | 黄色网页在线观看,91久久精品日日躁夜夜躁欧姜,加勒比黑人久久88综合网 |