On Thu, 30 Oct 2003 12:57:12 -0500, Greg Marr wrote:
Hi Folks
> At 11:43 AM 10/30/2003, nic...@cl... wrote:
>> Now, my problem is that I'm unable to make this function works.
>> Here
>> is the code I use within the cgiapp_postrun method:
>>
>> sub cgiapp_postrun {
>> my $self =3D shift;
>> my $output_ref =3D shift;
>>
>> my $new_output =3D "<h3>";#.$$output_ref."</h3>";
>> $output_ref =3D \$new_output;
>> }
>
> That last line should be $$output_ref =3D $new_output;
> Yes, there are some incorrect docs out there that show the form you
> used.
Besides that, look closely at the line in error:
=09my $new_output =3D "<h3>";#.$$output_ref."</h3>";
Perl will parse this as:
=09my $new_output =3D "<h3>";
followed by
=09# Comment...
--
Ron Savage, ro...@de... on 31/10/2003. Room EF 312
Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia
Phone: +61-3-9251 7067, Fax: +61-3-9251 7604
http://www.deakin.edu.au/~rons
|