
| Linuxtopia Contents |
Perl Tutorial - An Introduction to Perl - Perl Testing |
| [an error occurred while processing this directive] |
Contents15. Testing Perl ProgramsUse the compiler #!/usr/local/bin/perl -w As you write your program, put in CGI scripts require some special attention in testing. MU's "showme" and "SGI" Web servers (www.missouri.edu and www.cclabs.missouri.edu) use the Apache "sucgi" facility. This causes CGI programs stored under your directory ~/www/ with file name ending ".cgi" to execute as your own ID. On some other Web server the script does not execute under your login ID! It executes under the ID of the Web server, typically as user "nobody". Thus a script that works at the command line may fail under the Web server because: $ENV{'PATH'} .= ':~myid/bin:~myid/cgibin';
push @INC,'~myid/lib/perl';
|