in reply to Could you look over my completed (but not working) short .cgi script?

G'day StarRice,

Welcome to the monastery.

"And the errors I get running perl -c: ..."

Look at "Print <<addressForm;": you'll want to s/Print/print/.

"And It's errors: ... (Might be a runaway multi-line "" string starting on line 3) ..."

Look at the double quotes you use on line 3. Not &quot;, instead &ldquo;.

$ perl -Mutf8 -E 'say "Normal double quote: ", ord q{"}'
Normal double quote: 34
$ perl -Mutf8 -E 'say "Your double quote: ", ord q{“}'
Your double quote: 8220

-- Ken

Replies are listed 'Best First'.
Re^2: Could you look over my completed (but not working) short .cgi script?
by StarRice (Novice) on May 31, 2014 at 07:15 UTC
    Ahh yup. I fixed the errors and now its working fine. :) Thank you for the suggestions/pointing them out. I have one more question now, when I test the script it doesn't display the 'items ordered/bought' on the last page (c11case2b.cgi). Is my foreach statement correct for that?