We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5691cb1 commit 4cb01beCopy full SHA for 4cb01be
lib/MetaCPAN/Util.pm
@@ -37,16 +37,21 @@ use Sub::Exporter -setup => {
37
true
38
false
39
is_bool
40
+ to_bool
41
MAX_RESULT_WINDOW
42
) ]
43
};
44
45
# Limit the maximum result window to 1000, really should be enough!
46
use constant MAX_RESULT_WINDOW => 1000;
47
-*true = \&Cpanel::JSON::XS::true;
48
-*false = \&Cpanel::JSON::XS::false;
+sub true ();
49
+*true = \&Cpanel::JSON::XS::true;
50
+sub false ();
51
+*false = \&Cpanel::JSON::XS::false;
52
+sub is_bool ($);
53
*is_bool = \&Cpanel::JSON::XS::is_bool;
54
+sub to_bool ($) { $_[0] ? true : false }
55
56
sub root_dir {
57
Cwd::abs_path( File::Spec->catdir(
0 commit comments