Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
And it works. How can I change it so that I can call it with "use" like this?#!/usr/bin/perl -w use strict; do 'mysub.pm'; # The rest of code
I tried that code it throws the warning "Command exited with non-zero status 2".#!/usr/bin/perl -w use strict; use mysub.pm; # The rest of code
My second question is. Which is better using "use" or "do" to call it? Which is faster? Thanks ...sub mysub1{ # somecodes } sub mysub2{ # somecodes } # some more subroutines
|
|---|