Tip #1 from the Basic debugging checklist:
use diagnostics; [download]
In reply to Re: example 7.pl by toolic in thread example 7.pl by Raymond