At the top of the template, you forgot:
[-
$a = shift @param;
-]
On my own sites, I wrote a "preprocessor" abstraction-type module that
copies param to %fdat, so that you don't need the line above.
ilia.
----- Original Message -----
From: "Ian Fenn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 07, 2000 21:05
Subject: Problem with passing of variable.
> Now, I'm sure that I must be doing something really, really dumb, and the
> problem is staring me in the face, but I've spent ages trying to work it
> out and would be grateful of assistance! I've read and re-read the
> documentation, without success.
>
> I have a CGI script:
>
> #! /usr/bin/perl
>
> use CGI;
> use HTML::Embperl;
>
> $q = new CGI;
>
> $a = "Test";
> $template = "./recipe.html";
> print $q->header(-type=>'text/html');
> HTML::Embperl::Execute($template,$a);
>
> exit;
>
> I also have a template:
>
> <HTML>
> <HEAD>
> <TITLE>Test</TITLE>
> </HEAD>
> <BODY>
> <P>[+ $a +]</P></BODY>
> </HTML>
>
> My assumption is that when I run the above CGI script -
> http://hostname/cgi-bin/test.pl - it will simply display the value of $a,
> yet it does not. All I get is everything else and nothing where "Test"
> should be.
>
> What am I doing wrong?
>
> All the best,
>
> --
> Ian Fenn
> http://www.chopstix.net/ - The award-winning Oriental food and culture
site.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]