perl programming functions?

ArnArn

New member
Anybody know whats the difference between &:: and main:: in perl programming. Sample code below. Trying to learn perl scripting and kinda confused on whats the difference of the two?

previous:
if (defined(&::Init)) {
&::Init if (defined(&::Init));}
else {
Trig_Set();
}

current:
if ( defined( main::Init() ) ) { main::Init(); }
else { Trig_Set(); }

Thanks in advance
 
Back
Top