You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by raptor <ra...@unacs.bg> on 2001/08/16 19:01:02 UTC
$Response->Include() in list context
hi,
Is it possible to return more than one var from $Response->Include() .. i
seem to not have a success :
my $val1 = $Response->Include("myinclude.inc");
is OK, but this doesn't seem to work :
my ($val1, $val2) = $Response->Include("myinclude.inc");
myinclude.inc
===========
<%
.....
my @ar = ('he', 'flaa');
return @ar;
%>
I get $val1 = 2 and $val2 = 1 ... i.e. this seems that it returns the size
of the array.. not the values..
yes I know I can use reference..just wondering.
=====
iVAN
raptor@unacs.bg
=====
PS.And in this case :
my @ar = ('he', 'flaa', 'ff', 'dd' );
return @ar;
4 | 1
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: $Response->Include() in list context
Posted by Joshua Chamas <jo...@chamas.com>.
raptor wrote:
>
> hi,
>
> Is it possible to return more than one var from $Response->Include() .. i
> seem to not have a success :
>
> my $val1 = $Response->Include("myinclude.inc");
> is OK, but this doesn't seem to work :
>
> my ($val1, $val2) = $Response->Include("myinclude.inc");
>
I never really thought to use $Response->Include() in
this way, but if you want to, then why not, eh?!
I'll attach separately my latest dev 2.23 which will
have this fixed.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org