Re: finding invalid method names
- From: Michael Carman <mjcarman@xxxxxxxxx>
- Date: Sat, 28 Apr 2007 02:51:49 GMT
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
.
- References:
- finding invalid method names
- From: ivan
- finding invalid method names
- Prev by Date: Re: Memory Management
- Next by Date: Re: Cat file a to *.xls files
- Previous by thread: Re: finding invalid method names
- Next by thread: FAQ 4.13 How do I find the current century or millennium?
- Index(es):
Relevant Pages
|
|