Gossamer Forum
Home : General : Perl Programming :

Debugging Perl scripts - Online Perl compiler

Quote Reply
Debugging Perl scripts - Online Perl compiler
I while ago I wrote an online compiler script to compile scripts online if you don't have a shell account available at your hosting provider. Basically, it performs this action: perl -c -w your_script.pl With this script, you can find the cause of Internal 500 Server Errors due to operating system differences, perl version differences and missing modules. The old script worked, but was rather clumsy: I have made a new script, more user friendly. You can see a demo at: http://argentavis.hypermart.net/cgi-bin/demo/demo.pl

You can download the script from:
http://argentavis.hypermart.net/perl/compiler.html
Quote Reply
Re: [argentavis] Debugging Perl scripts - Online Perl compiler In reply to
Yeah it's quite a nice idea...GT use the same kind of idea for their plugin wizard which checks the syntax of perl modules. Alternatively you could use eval.

eg...

Code:
my $code = eval "sub { { print 'Oops unmatched bracket!'; }" || $@;

print ref $code eq 'CODE' ? $code->() : $code;

Last edited by:

Paul: Jun 21, 2002, 11:25 AM
Quote Reply
Re: [argentavis] Debugging Perl scripts - Online Perl compiler In reply to
Thank you for sharing!

- wil