develooper Front page | perl.beginners | Postings from December 2008

Starting with ::

Thread Next
From:
Martin Barth
Date:
December 2, 2008 07:43
Subject:
Starting with ::
Hello,

whats the difference if you start a variable with ::

for example:

$::a
$a
$main::a

or:

Package Foo;
$::a # <- this is still main?!

$::Foo::a
$Foo::a 
$a

didn't found information in the perldoc.

Regards Martin


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About