Skip to content

Instantly share code, notes, and snippets.

Created Feb 27, 2013
What would you like to do?
Use Readonly instead of constant
#!/usr/bin/env perl
use warnings;
use strict;
use Data::Dumper;
use Readonly;
Readonly my $MY_CONSTANT => 13;
my %foo = ($MY_CONSTANT => 'dingle');
print Dumper \%foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment