in reply to Detect undefined subroutines
If you're willing to do that then never call routines directly, instead do them through variables...
And now -c catches the error.#!/usr/bin/perl use strict; use warnings; my $fooz = sub { print "Hello, world\n"; }; $foo->();
The solution is ugly enough that everyone I know is willing to just live with the problem instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detect undefined subroutines
by ihb (Deacon) on Sep 18, 2004 at 16:51 UTC | |
by tilly (Archbishop) on Sep 18, 2004 at 17:51 UTC | |
by ihb (Deacon) on Sep 18, 2004 at 20:42 UTC |