Basically, it means that the previous programmer either didn't really know what he was doing or was doing something very clever.
$::var is just shorthand for $main::var, i.e. the package variable $var in the main package. Generally there are very few reasons why you would want to use package variables in preference to lexical variables, so without seeing more of the code, it's hard to know why your program uses this syntax.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: What does $::var means
by davorg
in thread What does $::var means
by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |