Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Using Global Variables in Perl

by jkva (Chaplain)
on Apr 23, 2008 at 11:07 UTC ( #682362=note: print w/replies, xml ) Need Help??


in reply to Re: Using Global Variables in Perl
in thread Using Global Variables in Perl

I guess by that logic I should convert all my little procedural syadmin perl scripts to OO? ;-)

I'm more of a proponent of the "Right Tool for the Right Job"... :) It depends on what you're building.

Replies are listed 'Best First'.
Re^3: Using Global Variables in Perl
by Anonymous Monk on Sep 06, 2011 at 02:52 UTC
    I honestly don't suggest or condone the use of global variables in this aspect... If you have the time to write out $varname you have the ability to just hard code >> << > < also like to point out your variable names are already identifyers it really needs to be just standard variables in this case however an option for global shared variables in the $_ENV in perl to control global variables over your filehandle multiplexing codes.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682362]
help
Chatterbox?
Eily never heard of the movie "LanX"
[Eily]: the LanX OS either now that I think of it :P
[hippo]: Congratulations, Discipulus!
[Discipulus]: Satura Lanx was a latin genre of show
[Discipulus]: coming from the meaning of 'mixed dish'
[Discipulus]: thanks hippo! the hat you passed me was brand new and clean, thanks
LanX OS builds on multitasking humor ...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-07-28 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (426 votes). Check out past polls.