In article <46**************************@posting.google.com >, T Chheng
<tc******@ucsd.edu> wrote:
hey,
I'm looking over some perl code and came across this: $Z::status and
$G::new
I know that the :: is like a '.' in Java, but are $Z and $G special
variables? I dont see them defined anywhere in the script.
Z and G are package names. The $ attaches to Z::status, not just Z
alone. Think of it as '${Z::status}'. 'status' is a symbol in the
symbol table for package Z.
Look for lines such as 'package Z' line in your source code. These
lines might be in a separate file if you have 'do', 'eval', 'require',
or 'use' in your program.
FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future.