Skip to content

Instantly share code, notes, and snippets.

@eam
Created August 30, 2023 16:01
Show Gist options
  • Save eam/ebb1b46d7cd44b158a29c82cc99ca91b to your computer and use it in GitHub Desktop.
Save eam/ebb1b46d7cd44b158a29c82cc99ca91b to your computer and use it in GitHub Desktop.
#!/usr/bin/perl -w
use warnings;
use strict;
use feature 'say';
use utf8;
use open qw( :std :encoding(UTF-8) );
use lib ".";
use 中文;
say "hi";
package foo;
#包 你好;
print "here is 包 and foobar\n";
sub foo { 1 };
#函数 bar { 2 };
1;
$ ./test.pl
hi
here is 包 and baz
use utf8;
package 中文;
use Filter::Simple;
FILTER {
s/函数/sub/g;
s/包/package/g;
s/foobar/baz/g
};
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment