Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Deparse to the rescue!

by spaz (Pilgrim)
on Jan 26, 2001 at 03:55 UTC ( [id://54434]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://54434]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-24 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found