Re: Script Question
by "Darrell King" <darrell(at)webctr.com>
|
Date: |
Sun, 30 Apr 2000 14:06:39 -0400 |
To: |
"HTML GUILD" <hwg-basics(at)hwg.org> |
References: |
bigfoot |
|
todo: View
Thread,
Original
|
|
Use double quotes around your display string. Perl converts variables
inside double quotes, but not in single:
"This is my $name."
To simple record the string for later evaluation, your format is fine:
$text = 'This is my $name.';
To convert variables that are part of a string variable, try eval():
<TEXTAREA NAME="text" ROWS="10" COLS="50">eval($text)</TEXTAREA>
D
----- Original Message -----
From: M Lessar Jr <rfd246(at)bigfoot.com>
To: HTML GUILD <hwg-basics(at)hwg.org>
Sent: Sunday, April 30, 2000 1:31 PM
Subject: Script Question
Hello,
I am writing a program and in a section of the program I have it set so that
they can edit a certain text.
Now I have setup the text as 1 large scalar,
but inside the scalar I want it to show other scalars.
I have yet to figure this out,
ex;
I have a name that I want to show up everytime in the text where the scalar
is called
$text = 'This is my $name.';
$name = 'Mike';
(please remeber this is only a sample not the actual script)
yet when I were to view it in the editing portion of the script It shows
This is my $name.
It does not convert the scalar.
I am using an example:
sub edit {
require 'variables.pl';
etc, etc,
<TEXTAREA NAME="text" ROWS="10" COLS="50">$text</TEXTAREA>
etc, etc,
}
Is this posible? if so how?
any help would be appreciated.
Thanks
Mike Lessar
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA