http://qs321.pair.com?node_id=682362


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.