Mailing List Archive

Why $row doesn't work with out of package array variables ?
Hi,

Can someone explain why Embperl (embperl_20000208111341.tar.gz) refuses to
deploy the array in the case of the latter is out of the package ?

For example.

This works, of course :
<table><tr><td>[+ $row +]</td><td>[+ $array[$row] +]</td></tr></table>

This doesn't work (it yields no result) :
<table><tr><td>[+ $row +]</td><td>[+ $package::array[$row]
+]</td></tr></table>

Why ?


Apache::Session 1.04
Mod_perl 1.2.1

db
Re: Why $row doesn't work with out of package array variables ? [ In reply to ]
I use out of package array variables with the $row construct in
my code without a problem.

her is a sample of from production code:
<td width="50"><div align="center"><b><font face="Verdana,
Arial,
Helvetica, sans-serif" size="2">[+ $GWCe::prcordreq[$row]->{UOM}
+]</font></b></
<td width="65"><div align="center"><b><font face="Verdana,
Arial,
Helvetica, sans-serif" size="2"><input type="text" name="[+
$GWCe::ordlin[$row]
+]" size="3" maxlength="3" value="[+ $udat{$GWCe::ordlin[$row]}{QTYORD}
+]"></fo

cliff rayman
genwax.com

ml wrote:

> Hi,
>
> Can someone explain why Embperl (embperl_20000208111341.tar.gz)
refuses to
> deploy the array in the case of the latter is out of the
package ?
>
> For example.
>
> This works, of course :
> <table><tr><td>[+ $row +]</td><td>[+ $array[$row]
+]</td></tr></table>
>
> This doesn't work (it yields no result) :
> <table><tr><td>[+ $row +]</td><td>[+ $package::array[$row]
> +]</td></tr></table>
>
> Why ?
>
> Apache::Session 1.04
> Mod_perl 1.2.1
>
> db
RE: Why $row doesn't work with out of package array variables ? [ In reply to ]
> Hi,
>
> Can someone explain why Embperl (embperl_20000208111341.tar.gz)
> refuses to
> deploy the array in the case of the latter is out of the package ?
>
> For example.
>
> This works, of course :
> <table><tr><td>[+ $row +]</td><td>[+ $array[$row]
> +]</td></tr></table>
>
> This doesn't work (it yields no result) :
> <table><tr><td>[+ $row +]</td><td>[+ $package::array[$row]
> +]</td></tr></table>
>

If the arrays really contain the same conntent, this shouldn't make any
difference

Gerald


-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------