<?xml version="1.0" encoding="windows-1252"?>
<node id="380533" title="Re^2: Troubleshooting Perl CGI scripts" created="2004-08-06 09:44:59" updated="2005-07-07 14:44:16">
<type id="11">
note</type>
<author id="144850">
rinceWind</author>
<data>
<field name="doctext">
You need to add the shebang line to your checklist. Apache (for one) will refuse to run a script without a valid shebang line. It probably belongs next to &lt;strong&gt;"What are the scripts permissions?"&lt;/strong&gt;.
&lt;p&gt;
On the subject of shebang lines, [Devel::ptkdb] is worth a mention for debugging. You can get this invoked directly from the shebang line&lt;code&gt;

#!/usr/local/bin/perl -d:ptkdb
&lt;/code&gt;
On a windows box, a ptkdb window will pop up when you access the url. On Unix, if you configure $ENV{DISPLAY} in apache you can get the ptkdb window to pop up in an X window.

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-144850"&gt;
&lt;p&gt;&lt;small&gt;--&lt;br&gt;I'm Not Just Another Perl Hacker&lt;/small&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
380424</field>
<field name="parent_node">
380446</field>
</data>
</node>
