Hello,

How to find there're one or more undefined subroutines in a perl scritp?
for example,

use strict;
use warnings;


if (1) {
    test1();
} else {
    test2();
}

sub test1 {
    print 1;
}

__END__


in above code, when tes2t() isn't executed, we may not have the chance
to know test2() is not defined.

I ask this because, some of the scripts are very long (more than 2000
lines maybe?), and there are many subroutines in them.
Some subroutines are used, but maybe not defined, or maybe just typos
(ie, we defined example_call() function but we call sample_call()
later).
How to find this case?

Thanks.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to