Re: finding invalid method names



On 4/27/2007 5:41 PM, ivan@xxxxxxxxxx wrote:

I would like to run a command on my perl scripts / modules to find out if
there are any method names that are being called which are not defined.

Method dispatch happens at runtime. There's really no way for a static analysis
tool to determine whether or not a given method call is valid.

perl -c test.pl

on this script:
1 #!/usr/bin/perl
2 use strict;
3
4 blah_blah_foo();

The result is test.pl syntax OK.

Umm, as Tad said, there are no method calls in that code. Did you want to ask
about detecting undefined *subroutines*?

-mjc
.



Relevant Pages

  • Re: perl interpreter automatically exit windows so how I can saw the result of script?
    ... through a perl sentence, I know "Run your Perl scripts from the ... command line instead of double clicking on them", but I'm a lazy man, ... >Learn how to use Windows XP, ... >you Perl scripts from the command line instead of double clicking on them ...
    (comp.lang.perl.misc)
  • Re: Serail Port communication using PERL
    ... I am beginner in PERL scripts. ... I want to excecute some command by logging into the device using ... PERLscripts. ...
    (comp.lang.perl.misc)
  • Serail Port communication using PERL
    ... I am beginner in PERL scripts. ... I want to excecute some command by logging into the device using ... PERLscripts. ... The device may be a EXTREME SWICTH. ...
    (comp.lang.perl.misc)
  • Re: spamassassin
    ... > command...assuming I'm using the right command. ... > spamassasin from the Suse cd's. ... the SUSE version doesn't have all of the scripts (spamassassin ... is mostly Perl scripts), you need to use CPAN to get them all. ...
    (alt.os.linux.suse)
  • Re: Calling external programs from within a Tomcat application
    ... only use Perl scripts on the command line) or via Tomcat (which I'm ... --- Ayn Rand, Atlas Shrugged ...
    (comp.lang.java.programmer)