Recent Articles


Review: Wicked Cool Perl Scripts
Order (or just read more about) Wicked Cool Perl Scripts from Amazon.com. Bah, humbug. Well, maybe not that bad. Actually, not "bad" at all: I have no real complaints about this book, but I didn't like it and can't imagine handing it to anyone with a hearty "Here, read this...

A Perl And C# Comparison
A search that I have noticed that has been passed to my site was "perl c# comparison", I would assume that the person that asked this was trying to compare the languages and not how c# and perl perform...

Handling Missing Data
I have an old Perl project that goes out to a Government web site, ftp's some files, massages them in various ways, and spits out some output. Over time, the project grew, and now does more than it used to. To keep it generic and simple, let's pretend that originally...

Help, My Script Isn't Working!
Here's a list of tips and tricks to consult at two a.m. when you're trying to put your site to bed and that d*mn script just won't work. 1. Make a note of the error message, and type it in Google. Leave out your unique paths and...

Perl Loop Causes Strange Read-only Error
Ok, folks: I don't understand this. It must have something to do with anonymous arrays in Perl (no, it doesn't, I realize now), but I don't grok the connection. I ran into this in attempting a seemingly simple change in some customer's code; it wasn't hard to fix...


02.23.07


Perl, CGI And SSI Advice

By Chris Crum

One of the goals of our WebProWorld forum is for people to help each other with problems that may be having whether it be in marketing, eCommerce, or coding.

We don't like to see requests for help go unanswered, so I thought I would do one of our members a service by getting his post to a wider audience.

And with the post being about Perl, why not see what our beloved PerlProNews subscribers would have to offer in the way of advice?

The post comes from our member named

Hello all,

Here is the situation:

I'm updating an old perl/cgi shopping cart system that we used to use on our site. I'm updating it because it has a special feature built into it that we want to use in our current set up.

I know pretty much nothing about perl (or files in the cgi-bin for that matter) but I've managed to get the pages generated by perl to look like the rest of our site...with one exception. I can't get any of the SSI to work!

The perl code calls an html template which resides in the cgi bin with the perl programs. The template acts as a "shell" for the perl code if you will.

Low Rate eCommerce & Retail Plans

I've tried just about every combination on calling the include that I can think of (virtual, file, ../, / etc..) but I just can't get it to show any of the includes. I then tried moving the template to the root folder and changing the template file location in the perl code to the template file in the root folder. Nope! Although I can see the includes if I just manually bring the page up (www.site.com/template.html).

I've also tried putting the include files in the cgi-bin in the same folder as the template file but that doesn't seem to work either.

Am I beating my head against a door that won't open? Am I missing something simple?

I do apologize, I'm not real familiar with perl or working with files in the cgi-bin.

Any help is appreciated.

Thanks,

DaK


As Dak said, any help is appreicated. Please offer your comments here.

About the Author:
Chris is a staff writer for WebProNews. Visit WebProNews for the latest ebusiness news.


About PerlProNews
PerlProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of Perl environments. News and Advice for Perl Professionals

PerlProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
PerlProNews.com SQLProNews.com
SysAdminNews DevWebPro.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITCertificationNews.com


-- PerlProNews
is an iEntry, Inc. publication --
iEntry, 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



Database Forum News and Advice for Perl Professionals PerlProNews News Archives About Us Feedback PerlProNews.com About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact Jayde