use strict;
  2 use warnings;
  3 my $str="A..B..";
  4 my @vec=split /\.\./,$str;
  5 foreach my $key (@vec)
  6 {
  7     my $len=length($key);
  8     print STDERR "$key\t$len\n";
  9 }
~          
posted on 2012-06-13 14:49  finallyly  阅读(394)  评论(0编辑  收藏  举报