in reply to Usage of global variables
However, if you really want to use global variables, you should put them into some namespace other than the default, for example like so:our %line = ( 1 => 2, 3 => 4 );
or so%MyGlobals::line = ( 1 => 2 , 3 => 4 );
{ package MyGlobals; our %line = ( 1 => 2 , 3 => 4 ); }
Try one of these, dropping use strict; is not a good idea..
|
|---|