At 11:03 AM 08/03/2001 +1000, Barrie Heck wrote:
>Hi All
>
>Have brought in text from HTML textarea through POST method into perl as
variable $FORM{message}. Want to add to the end of each line in the
variable but cannot work out how to do it. Any clues?
>
What have you tried so far?
--
To
I've tried:
while(<$FORM{message}>) {
$message=$message.$_."";
}
and:
$message = $FORM{message}
$message =~ s/\n//ge; #Also used \012, \015, \r, \f , $ and a few
others in place of \n
Barrie
- Original Message -
From: "Mel Matsuoka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED
Thanks Flip,
Actually I got the thing write by putting "?" operator. The pattern I am
looking for now is
$title = ( $lines =~s/(.{0,}?)<\/product>/ ) ? $1 : 'No Title';
I will look into the package you have mentioned. I am sure every one on the
list will be benifited by the info.
regards
--- "Boex,Matthew W." <[EMAIL PROTECTED]> wrote:
>
> i need to incorporate a good deal of html into my cgi scripts. what are my
> options other than Html::Mason. i know that will do the job but just want
> to compare against any other solutions out there
>
> matt
Two options come to mind
On Thu, 2 Aug 2001, Brian wrote:
> Somebody on the mod_perl mailing list might be able to help you better
> than somebody on the begginers perl list. This is a bit OT (okay, it's
> way out in left field. If you go to http://perl.apache.com you can sign
> up for the list.
Correction, it's http:
Folks,
I have been teaching myself CGI/Perl. I have Lincoln Stein's book "Official
Guide to Programming with CGI.pm". I have been trying to get his
"Guestbook.pl" script to work.
As a good newbie, the first thing I did was add "-w" to the shebang line and
"use strict;". I was surprised at the nu
There actually is a setting to use the shebang line with Apache for Win32
and activestate. There's not much point to it, but since I test CGIs at
home, and my server is unix, it lessens the transition. Of course, half the
things I do can't run on Windows, but it works for the basics. (some of
th
> "Paul" == Paul Bertram <[EMAIL PROTECTED]> writes:
Paul> 1. one error says "subroutine escapeHTML redefined at
Paul> line149". To my unexperienced eyes, it looks like that is the
Paul> only place it is defined, so why does perl think it is being
Paul> redifined?
CGI.pm defines it. If you
Hi All!
I'm developing a multilanguage site on apache with mod_perl.
A dictionary is stored in database.
All page must to access the database to find the words in the selected
language. It can be slow.
I tought, I should make a hash to store the text when it come first
form the database. The cgi