Perl Scripts - usr/bin/perl -w

Forum rules
Before you post please read how to get help
Level 1
Level 1
Posts: 2
Joined: Fri Mar 08, 2013 12:37 pm

Perl Scripts - usr/bin/perl -w

Postby insite » Fri Mar 08, 2013 12:51 pm

Using linux mint 14 with mate desktop.
Have setup apache webserver with mod_include and confirmed that perl scripts work from terminal, and also confirmed that ssi includes documents and scripts. Everything working according to plan except that perl scripts only work if the shebang line has -w stipulated. If omitted then the scripts fail. Puzzled over this. Does anyone have an idea why this would be required and how to get perl scripts to work without it?

User avatar
Level 3
Level 3
Posts: 149
Joined: Sun May 06, 2012 1:42 pm

Re: Perl Scripts - usr/bin/perl -w

Postby Jamesc359 » Mon Mar 18, 2013 3:27 am

I'd speculate it has something to do with your serving needing to log errors. But that's just a shot in the dark.
“Gosh, you've... really got some nice toys here.”

Return to “Scripts & Bash”

Who is online

Users browsing this forum: No registered users and 0 guests