Thanks for pointing out my silly oversight. -Colin.
On Sun, Aug 21, 2005 at 04:09:51PM -0400, Rick Delaney wrote: > On Fri, Aug 19, 2005 at 02:06:25PM -0700, Colin Meyer wrote: > > While playing with constant folding and compiler optimizations, I > > noticed something funny about B::Deparse. > > > > It seems to strip the conditionals off of some statements, implying > > that they will always be run. However, they do not get run. > > > > > > Here's my test files: > > > > A.pm: > > package A; > > use constant DEBUG => 1; > > 1; > > > > B.pm: > > package B; > > use constant DEBUG => 0; > > 1; > > This is the problem here. When you run it with -MO=Deparse, Deparse > loads the core B.pm so your B.pm is never loaded. If you change the > package name to "J", everything works fine. >