Advertisement
Guest User

Untitled

a guest
May 4th, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.32 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use utf8;
  4. use feature qw/say/;
  5.  
  6. binmode *STDIN, qq[:encoding(UTF-8)] ;
  7. binmode *STDOUT, qq[:encoding(UTF-8)] ;
  8.  
  9. while(<DATA>){
  10.     chomp;
  11.     for my $char (split // ) {
  12.         say $char if $char =~ m/\p{Han}/  ;
  13.     }
  14. }
  15.  
  16. __DATA__
  17. 我愛♥123αあい国ㄅㄆ叶龘
  18. 08帥哥啦
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement