in reply to Re: Can I Force perl to Check Subroutine References at Compile Time?
in thread Can I Force perl to Check Subroutine References at Compile Time?

cat >> test.pl #!/usr/bin/perl -w use strict; if( "1" eq "2" ) { print hello(); } sub helloBROKEN { print "Hello world\n"; } ---------------------------------- > perl -MO=Deparse test.pl test.pl syntax OK '???'; sub helloBROKEN { print "Hello world\n"; }
You're exactly right about perl not even looking at that if statement.