Created
February 27, 2013 23:24
-
-
Save earino/5052799 to your computer and use it in GitHub Desktop.
Use Readonly instead of constant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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