mountainbiker
Programmer
if i have a subroutines used in multiple programs, what is the best way to include these into programs (rather than maintain multiple copies of the same subroutines)?
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/local/bin/perl
sub doSomething {
print "Ran doSomething\n";
return(1);
}
1;
#!/usr/local/bin/perl
require './require_this.pl';
unless (&doSomething) { die "Failed require\n"; }