On 12/31/06, Paul LeoNerd Evans <[EMAIL PROTECTED]> wrote:
\> No it doesn't... This is one of those things about perl - code that
looks like a function call is never checked to see if the function
exists until runtime:

  #!/usr/bin/perl
  use warnings;
  use strict;

  print "Here I have started running now\n";

  foobarsplot();

  ^-- won't complain until runtime.

That's what gave me the motivation to write B::LintSubs, by the way:

  http://search.cpan.org/~pevans/B-LintSubs-0.02/

Isn't that just a copy of a 5.8-ish perl -MO=B,undefined-subs? The
5.9.something+ versions added support for threaded perls and you might
want to copy that too.

There's also support for arbitrary plugins so you can write your tests
code as a plain plugin and it gets called during the single runloop
and you don't have to have a runloop in your tests anymore.

Josh

Reply via email to