From: <[EMAIL PROTECTED]>
> I'm a super beginner...what exactly is happening when '::' is being
> used. Is this related to a 'use this;' statement?
>
> Dumbguy
Well ... it's hard to say what's "happening".
Here
$main::x = 5;
the :: separates the name of package (a separate namespace)
from the name of the variable.
Here
use Foo::Bar;
it separated the parts of the module name and will be "converted"
to / when looking up the module. That is perl will loop through the
directories in @INC array and look for subdirectory "Foo"
containing file "Bar.pm".
It will then load and compile the code and (if it exists) execute
function Foo::Bar::import().
Here
package Foo::Bar;
it's not "doing" anything. It's just a part of the name of the package.
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]