… | |
… | |
15 | package CFPlus; |
15 | package CFPlus; |
16 | |
16 | |
17 | use Carp (); |
17 | use Carp (); |
18 | |
18 | |
19 | BEGIN { |
19 | BEGIN { |
20 | $VERSION = '0.97'; |
20 | $VERSION = '0.9841'; |
21 | |
21 | |
22 | use XSLoader; |
22 | use XSLoader; |
23 | XSLoader::load "CFPlus", $VERSION; |
23 | XSLoader::load "CFPlus", $VERSION; |
24 | } |
24 | } |
25 | |
25 | |
… | |
… | |
28 | use AnyEvent (); |
28 | use AnyEvent (); |
29 | use Pod::POM (); |
29 | use Pod::POM (); |
30 | use File::Path (); |
30 | use File::Path (); |
31 | use Storable (); # finally |
31 | use Storable (); # finally |
32 | use Fcntl (); |
32 | use Fcntl (); |
33 | |
33 | use JSON::XS qw(to_json from_json); |
34 | BEGIN { |
|
|
35 | use Crossfire::Protocol::Base (); |
|
|
36 | *to_json = \&Crossfire::Protocol::Base::to_json; |
|
|
37 | *from_json = \&Crossfire::Protocol::Base::from_json; |
|
|
38 | } |
|
|
39 | |
34 | |
40 | =item guard { BLOCK } |
35 | =item guard { BLOCK } |
41 | |
36 | |
42 | Returns an object that executes the given block as soon as it is destroyed. |
37 | Returns an object that executes the given block as soon as it is destroyed. |
43 | |
38 | |