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
In reply to ifdef in modules by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |