PerlX::Define(3pm) User Contributed Perl Documentation PerlX::Define(3pm)

PerlX::Define - cute syntax for defining constants

   use v5.12;
   use strict;
   use warnings;
   
   package MyMaths {
      use PerlX::Define;
      define PI = 3.2;
   }

PerlX::Define is a yet another module for defining constants.

Differences from constant.pm:

Prior to version 0.100, PerlX::Define was bundled with Moops.

Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=PerlX-Define>.

constant.

Moops.

Toby Inkster <tobyink@cpan.org>.

This software is copyright (c) 2013-2014, 2018 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

2022-12-06 perl v5.36.0