Access Perl package variables 

Joined:
04/09/2007
Posts:
775

February 09, 2011 12:29:51    Last update: February 09, 2011 12:29:51
Perl package variables are accessed with the expression: $PackageName::variableName (for scalar, similarly for vector etc), not PackageName::$VariableName.

Example:
C:\>perl
use CGI;
print $CGI::VERSION;
^Z
3.48
Share |
| Comment  | Tags