Badger::Exporter Class Methods

package NewSkool::Constants;

use strict;
use warnings;
use base 'Badger::Exporter';
use constant {
    MESSAGE => 'Hello World!',
    VOLUME  => 11,
    TRUE    => 1,
    FALSE   => 0,

our $VERSION = 2.71;
    all  => 'MESSAGE',
    any  => 'VOLUME',
    tags => { truth => 'TRUE FALSE' },
Thus Spake Andy:

Here's the same thing using the export() class method to set all those package variables for us. Note that we no longer need to declare TRUE and FALSE in any. The method will take care of that for us.