in reply to ifdef in modules
It works fine for me:
# Bar.pm: use strict; use warnings; package Bar; =begin DEBUGGING die 'Bar dies'; =cut 1; __END__ # foo.pl use strict; use warnings; use Bar; die 'foo.pl dies'; __END__ % perl foo.pl foo.pl dies at foo.pl line 6. % perl -Mifdef=DEBUGGING foo.pl Bar dies at /loader/0x8128de4/Bar.pm line 7. Compilation failed in require at foo.pl line 4. BEGIN failed--compilation aborted at foo.pl line 4.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ifdef in modules
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 |