http://www.perlmonks.org?node_id=759159


in reply to Are global variables "bad"?

As a Web programmer, I usually using CGI::Application already, so I will stick data in a param for use around a script.

$self->param('hashref' => \%hash);

and later:

my %hash = %{ $self->param('hashref') };

Again, only if that is a viable option.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot