Y
Yakov
I use 'usr strict; use warnings'. It catches uses of nonexistent
variables,
at compile time, very good. But it does not catch uses of nonexistent
subroutines
at compile time. Until error at runtime. Too late.
Is there any directive to catch uses of nonexistent subroutines at
compile-time ?
Example:
perl -e 'use strict; use warnings; if(int(rand(2)))
{ NoSuchSub(); }'
Depending on your luck, this program either works, or dies.
But I'd like to catch ref to apparently nonexistent subroutine at
compile-time.
Thanks
Y.L.
variables,
at compile time, very good. But it does not catch uses of nonexistent
subroutines
at compile time. Until error at runtime. Too late.
Is there any directive to catch uses of nonexistent subroutines at
compile-time ?
Example:
perl -e 'use strict; use warnings; if(int(rand(2)))
{ NoSuchSub(); }'
Depending on your luck, this program either works, or dies.
But I'd like to catch ref to apparently nonexistent subroutine at
compile-time.
Thanks
Y.L.