Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Are global variables "bad"?

by bradcathey (Prior)
on Apr 22, 2009 at 01:43 UTC ( [id://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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-18 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found