in reply to PERL and HTML
If you run the scripts externaly, you can check their exit status by looking at $?.