catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 09-02-2006, 08:57 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 14
Perl Problems

Hiya

Don't know if anyone can help with this, but I'm trying to create a Perl guestbook on my site, and don't seem to be having much luck. The author of the .pl file suggests either the first line, or the paths in my configuration are incorrect. Here's the first section that he apparently refers to:

Quote:
#!d:\Perl\bin\Perl.exe -w
#
# $Id: guestbook.pl,v 1.51 2006/01/23 16:18:12 gellyfish Exp $
#

use strict;
use POSIX qw(locale_h strftime);
use CGI qw(:standard);
use Fcntl qw(EFAULT :flock);
use IO::File;


use vars qw(
$DEBUGGING $done_headers @debug_msg $guestbookurl
$guestbookreal $guestlog $cgiurl
$style $mail $uselog $linkmail $linkname $separator $redirection
$entry_order $remote_mail $allow_html $line_breaks $postmaster
$mailprog $recipient $short_date_fmt $long_date_fmt $locale $timezone
$hide_new_comments $bannednets @use_rbls
);

# sanitize the environment

delete @ENV{qw(ENV BASH_ENV IFS PATH)};

# Configuration

#
# $DEBUGGING must be set in a BEGIN block in order to have it be set before
# the program is fully compiled.
# This should almost certainly be set to 0 when the program is 'live'
#

BEGIN
{
$DEBUGGING = 1;

$guestbookurl = 'http://www.mydomain.com/guestbook.html';
$guestbookreal = ‘d:\domains\mydomain.com\guestbook.html';
$guestlog = 'd:\domains\mydomain.com\guestlog.html';
$cgiurl = 'http://www.mydomain.com/cgi-bin/guestbook.pl';
Does anyone know if these are correct? I'm on Lime server, if that makes any difference?

Any help would be appreciated - it's annoying me now!
farky85 is offline   Reply With Quote
Old 10-02-2006, 10:34 AM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
The path to your webstie is d:\domains\domain.com\wwwroot\
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.