[Israel.pm] Help: why does it warn me?
chananb at centerity.com
Wed Feb 4 06:58:00 PST 2009
I wrote this script:
my ($lv_reg) = @_;
The idea that sub el_parse_reg will update these fields.
I tired doing something like that as a test (but without warnings) and it
But when I tried to imply use warnings and use strict I get this kind of
warning / error message:
Global symbol "$lv_host_stmt" requires explicit package name at event_log.pl
Why is that?
PS: correct me if I am wrong
But as what I understood:
my - applies to sub private variables
local - protected scalars that can be updated by other sub called by the sub
which created the local variables
our - more like a global like variables - which can be accessed from all the
module / script found on that file
More information about the Perl