Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Are global variables "bad"?

by bradcathey (Prior)
on Apr 22, 2009 at 01:43 UTC ( #759159=note: print w/ replies, xml ) Need Help??

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.

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

Comment on Re: Are global variables "bad"?
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://759159]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-11-28 07:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls