YuckFoo
==== MyConfig.pm ==== package MyConfig; my $CONFIG = { color => 'blue', animal => 'camel' }; *{"::CONFIG"} = \$CONFIG; 1; ==== testit.pl ==== #!/usr/bin/perl use strict; use MyConfig; print "$CONFIG->{color} $CONFIG->{animal}\n";
In reply to Re: Require Centralized Variables
by YuckFoo
in thread Require Centralized Variables
by mhorner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |