Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm using the ifdef pragma, but am having problems with using it in modules. For example:
foo.pl: use Bar; die "outer death"; Bar.pm: package Bar; =begin DEBUGGING die "inner death"; =cut
Running 'perl -Mifdef=DEBUGGING foo.pl' just dies with 'outer death' but I was expecting 'inner death'. Does the ifdef pragma not affect used modules? This thread suggests it should affect all modules. Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ifdef in modules
by ikegami (Patriarch) on Jun 14, 2005 at 16:03 UTC | |
by clee (Novice) on Jun 14, 2005 at 16:54 UTC | |
by Tanktalus (Canon) on Jun 14, 2005 at 20:12 UTC | |
by clee (Novice) on Jun 14, 2005 at 21:44 UTC | |
by Tanktalus (Canon) on Jun 14, 2005 at 22:11 UTC | |
| |
|
Re: ifdef in modules
by tlm (Prior) on Jun 14, 2005 at 15:21 UTC | |
by clee (Novice) on Jun 14, 2005 at 16:50 UTC | |
by tlm (Prior) on Jun 14, 2005 at 17:49 UTC | |
by clee (Novice) on Jun 14, 2005 at 19:50 UTC | |
by tlm (Prior) on Jun 14, 2005 at 21:33 UTC | |
by clee (Novice) on Jun 15, 2005 at 00:32 UTC | |
|
Re: ifdef in modules
by clee (Novice) on Jun 15, 2005 at 21:47 UTC |