arcnon has asked for the wisdom of the Perl Monks concerning the following question:
if I place '# test' anywhere inside my module I get :
Tester/Test.pm did not return a true value at ./t.pl line 7.
BEGIN failed--compilation aborted at ./t.pl line 7.
I have the '1;' at the end of the module. I can also comment the script that calls the module with no problems. I have never had anything like this happen before and has taken 6 hours just to find out what was causing my error.
If I remove the comment it works fine.
running perl This is perl, v5.8.6 built for darwin
Can someone please help me!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: comments break my code
by Tanktalus (Canon) on Nov 19, 2005 at 16:55 UTC | |
by arcnon (Monk) on Nov 19, 2005 at 17:04 UTC | |
by simonm (Vicar) on Nov 19, 2005 at 17:09 UTC | |
by arcnon (Monk) on Nov 19, 2005 at 17:14 UTC | |
by demerphq (Chancellor) on Nov 19, 2005 at 20:25 UTC | |
by spiritway (Vicar) on Nov 20, 2005 at 08:00 UTC | |
by fmerges (Chaplain) on Nov 20, 2005 at 12:27 UTC |