Perl: the Markov chain saw | |
PerlMonks |
(chromatic) RE: Re: use vars (expound a bit?)by chromatic (Archbishop) |
on Jul 17, 2000 at 08:22 UTC ( [id://22820]=note: print w/replies, xml ) | Need Help?? |
You would fully qualify a 'package' variable when you're in another package. For example, if you use the DBI module, you can access error information for the last call in $DBI::errstr. Presumably, your code is in the main:: package, or another self-defined package. Saying $DBI:: (variable name) tells Perl where to find (variable name), since it's not in the current package.
In Section
Seekers of Perl Wisdom
|
|