in reply to CGI::Ajax and passing the paramaters.
use warnings; use strict;
I get this type of message:
Use of uninitialized value in concatenation (.) or string
because $_ has not been assigned a value. Did you mean?
$str=$str."<p>$i";
Update: Or perhaps you wanted something like this:
use warnings; use strict; my $str = insertVals(qw(pTD pLocation p1 p2 p3 p4 pGameId dbPostDiv)); print "str = $str\n"; sub insertVals { my $str = 'num:' . scalar @_; for (@_) { $str .= "<p>$_" } return $str; }
prints:
str = num:8<p>pTD<p>pLocation<p>p1<p>p2<p>p3<p>p4<p>pGameId<p>dbPostDi +v
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Ajax and passing the paramaters.
by naveed010 (Acolyte) on May 07, 2008 at 17:36 UTC |