in reply to Re: basic conception?
in thread basic conception?
$main::x=10;
Since everything is based off of main, the examples above can also be written as:
(Both ways are 'correct', although the previous way is actually preferred.)$main::A::v and $main::B::v
Unless you are creating your own packages, you don't have to worry about namespace or about using the double colon identifier - perl does all of that behind your back. But it is a nice feeling to know that perl is back there, keeping track of everything for you. :)
|
|---|