From: Richard Heintze <[EMAIL PROTECTED]>
> After several hours I tracked it down to these line of
> code. The concantenation is failing suddenly!
>
> my $hidden="<table><tr><td>";
> &FormElements(\$hidden...);
>
> sub FormElements{
> my $hidden = @_;
This line is incorrect.
> my $t1 = qq[<input type=text value=mumble>];
> $$hidden .= $t1;
As
use strict;
would have told you.
The problem is that the
my $hidden = @_;
sets $hidden to the number of elements in @_. Not to the first
parameter passed to FormElements().
So the $$hidden doesn't access the global $hidden variable, but a
variable whose name is the number.
Try to print the $hidden inside the subroutine!
You want either
my ($hidden) = @_;
or
my $hidden = shift(@_);
HTH, Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]