- or download this
#!/usr/bin/perl
...
END { }
1; # return a true value, standard module behaviour
- or download this
use subs::utils;
print "now1: " . $subs::utils::henky . "|\n";
$subs::utils::henky = "spanky";
print "now2: " . $subs::utils::henky . "|\n";
- or download this
use subs::utils;
print "now3: " . $subs::utils::henky . "\n";
- or download this
now1: henky_init|
now2: spanky|
now3: henky_init
- or download this
BEGIN {
require "My/Module.pm";
My::Module->import();
}