in reply to Re: Usage of global variables
in thread Usage of global variables
in the main .pl file and in the .pm files it is like thisuse strict; use vars qw(%line $time); use mod1 qw(%line); use mod2 qw(%line $time);
in the mod1.pm, anduse strict; use Exporter(); use vars qw(%line);
in mod2.pm. Can any one explaing why and how is it working without giving any warnings.use strict; use Exporter(); use vars qw(%line $time);
2005-01-04 Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Usage of global variables
by tall_man (Parson) on Jan 04, 2005 at 17:12 UTC |