Debian Codegraph @

README

raw
1 NAME
2 PerlX::Define - cute syntax for defining constants
3
4 SYNOPSIS
5 use v5.12;
6 use strict;
7 use warnings;
8
9 package MyMaths {
10 use PerlX::Define;
11 define PI = 3.2;
12 }
13
14 DESCRIPTION
15 PerlX::Define is a yet another module for defining constants.
16
17 Differences from constant.pm:
18
19 * Cute syntax.
20
21 Like constant.pm, constants get defined at compile time, not run time.
22
23 * Requires Perl 5.12 or above.
24
25 If you're lucky enough to be able to free yourself from the shackles
26 of supporting decade-old versions of Perl, PerlX::Define is your
27 friend.
28
29 * Only supports scalar constants.
30
31 List constants are rarely useful.
32
33 Your constant can of course be a reference to an array or hash, but
34 this module doesn't attempt to make the referred-to structure read
35 only.
36
37 * Doesn't try to handle some of the things constant.pm does like
38 declaring constants using fully-qualified names, or defining constants
39 pointing at magic scalars.
40
41 Prior to version 0.100, PerlX::Define was bundled with Moops.
42
43 BUGS
44 Please report any bugs to
45 <http://rt.cpan.org/Dist/Display.html?Queue=PerlX-Define>.
46
47 SEE ALSO
48 constant.
49
50 Moops.
51
52 AUTHOR
53 Toby Inkster <[email protected]>.
54
55 COPYRIGHT AND LICENCE
56 This software is copyright (c) 2013-2014, 2018 by Toby Inkster.
57
58 This is free software; you can redistribute it and/or modify it under the
59 same terms as the Perl 5 programming language system itself.
60
61 DISCLAIMER OF WARRANTIES
62 THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
63 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
64 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
65