G
Great Deals
First, copy and paste all subs into a file named something.pm then add
1; to the end of something.pm
No need of export or package
Isn't that great? Why would people even use package/export?
In main program something.pl, write use something
something.pm:
sub getit2{
return time;
}
1;
something.pl:
#!/usr/bin/perl -w
use something;
$ab= getit2;
print "$ab\n";
1; to the end of something.pm
No need of export or package
Isn't that great? Why would people even use package/export?
In main program something.pl, write use something
something.pm:
sub getit2{
return time;
}
1;
something.pl:
#!/usr/bin/perl -w
use something;
$ab= getit2;
print "$ab\n";