diff options
| author | Tokuhiro Matsuno <tokuhirom@gmail.com> | 2009-04-15 12:55:41 +0900 |
|---|---|---|
| committer | Tokuhiro Matsuno <tokuhirom@gmail.com> | 2009-04-15 12:55:41 +0900 |
| commit | d449b1d20d680242553cd692a8d3e00112f6ae7e (patch) | |
| tree | eb91bf87b9848b1ee23f0cc45800608ad09f1d15 /perl/t/Util.pm | |
| parent | 5bd53f018f5317b96e635bbfec6a42b7950d1ef0 (diff) | |
| download | msgpack-python-d449b1d20d680242553cd692a8d3e00112f6ae7e.tar.gz | |
added perl support
Diffstat (limited to 'perl/t/Util.pm')
| -rw-r--r-- | perl/t/Util.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/perl/t/Util.pm b/perl/t/Util.pm new file mode 100644 index 0000000..c8debef --- /dev/null +++ b/perl/t/Util.pm @@ -0,0 +1,20 @@ +package t::Util; +use strict; +use warnings; + +sub import { + my $pkg = caller(0); + + strict->import; + warnings->import; + + no strict 'refs'; + *{"$pkg\::true"} = sub () { + Data::MessagePack::true() + }; + *{"$pkg\::false"} = sub () { + Data::MessagePack::false() + }; +} + +1; |
