You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rod Butcher <rb...@hyena.com.au> on 2000/08/12 09:34:48 UTC

$$foo in Apache::ASP

I'm running Apache 1.12, Mod_Perl 1.23, Apache::ASP 2.03 on NT.
I can't get the construct
<%
$foo = "xxx";
$$foo="yyy";
%>
to populate $xxx with "yyy". Works in normal Perl.

Any sugeestions ?
Thanks
Rod


Re: $$foo in Apache::ASP

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Rod" == Rod Butcher <rb...@hyena.com.au> writes:

Rod> I'm running Apache 1.12, Mod_Perl 1.23, Apache::ASP 2.03 on NT.
Rod> I can't get the construct
Rod> <%
Rod> $foo = "xxx";
Rod> $$foo="yyy";
Rod> %>
Rod> to populate $xxx with "yyy". Works in normal Perl.

For an odd definition of "works".  As in, ***HIGHLY DISCOURAGED***.

See <http://www.plover.com/~mjd/perl/varvarname.html>, et. seq.

It's proabably a Very Good Thing that ASP enables "use strict" for
you, to keep you from going down the Wrong Path.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: $$foo in Apache::ASP

Posted by Matt Sergeant <ma...@sergeant.org>.
On Sat, 12 Aug 2000, Rod Butcher wrote:

> I'm running Apache 1.12, Mod_Perl 1.23, Apache::ASP 2.03 on NT.
> I can't get the construct
> <%
> $foo = "xxx";

You need to turn off strict here:

no strict 'refs';

> $$foo="yyy";
> %>
> to populate $xxx with "yyy". Works in normal Perl.
> 
> Any sugeestions ?
> Thanks
> Rod
> 
> 

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org