When was the global (our) declaration introduced into perl?
One of my ISP's falls over when declaring as 'our' but is ok with 'my'.
Keith
One of my ISP's falls over when declaring as 'our' but is ok with 'my'.
Keith
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/bin/perl -w
use strict;
package tester;
sub test {
print $main::var, "\n";
}
package main;
$main::var = "Dummy text";
tester::test();
#!/usr/bin/perl -w
use strict;
package tester;
$tester::var = "Dummy text";
package main;
print $tester::var, "\n";