File: Util.pm

package info (click to toggle)
libdata-messagepack-perl 1.02-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,060 kB
  • sloc: ansic: 5,697; perl: 1,123; makefile: 10
file content (18 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package t::Util;
use strict;
use warnings;
use Data::MessagePack;

sub import {
    my $pkg = caller(0);

    strict->import;
    warnings->import;

    no strict 'refs';
    *{"$pkg\::true"}  = \&Data::MessagePack::true;
    *{"$pkg\::false"} = \&Data::MessagePack::false;
    *{"$pkg\::null"}  = sub() { undef };
}

1;