mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-24 01:26:33 +01:00
perl: make test code more simple
This commit is contained in:
parent
9346908485
commit
f2d13cd647
@ -10,13 +10,9 @@ sub import {
|
||||
warnings->import;
|
||||
|
||||
no strict 'refs';
|
||||
*{"$pkg\::true"} = sub () {
|
||||
Data::MessagePack::true()
|
||||
};
|
||||
*{"$pkg\::false"} = sub () {
|
||||
Data::MessagePack::false()
|
||||
};
|
||||
*{"$pkg\::null"} = sub() { undef };
|
||||
*{"$pkg\::true"} = \&Data::MessagePack::true;
|
||||
*{"$pkg\::false"} = \&Data::MessagePack::false;
|
||||
*{"$pkg\::null"} = sub() { undef };
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user