Thanks Rob, Jim and all others who helped me in explaining this code.
On Fri, Oct 9, 2009 at 1:06 PM, Rob Coops wrote:
>
>
> On Fri, Oct 9, 2009 at 9:58 AM, Raheel Hassan wrote:
>
>> Thanks Jim for a nice reply, could you explain what
>> push(@$temp_table,$ref->[$i]); is doing. in the first code
On Fri, Oct 9, 2009 at 9:58 AM, Raheel Hassan wrote:
> Thanks Jim for a nice reply, could you explain what
> push(@$temp_table,$ref->[$i]); is doing. in the first code.
>
> In the second @_= $dbh where as in the if command $_ is getting the values
> from this default array. Then how it can return
Thanks Jim for a nice reply, could you explain what
push(@$temp_table,$ref->[$i]); is doing. in the first code.
In the second @_= $dbh where as in the if command $_ is getting the values
from this default array. Then how it can return \%s..in the last
statement.
On Thu, Oct 8, 2009 at 6
Raheel Hassan wrote:
Hello,
Hello,
I have problems in understanding $...@$ use ?
1- my $ref = $$temp_sth -> fetchall_arrayref({});
for(my $i=0; $i <= $...@$ref}; $i++) {
push(@$temp_table,$ref->[$i]);}
$...@$ref} should be $#{$ref} or simply $#$ref
And
for(my $i=0; $i <= $...
On 10/8/09 Thu Oct 8, 2009 9:00 AM, "Raheel Hassan"
scribbled:
> Hello,
>
> I have problems in understanding $...@$ use ?
>
> 1- my $ref = $$temp_sth -> fetchall_arrayref({});
> for(my $i=0; $i <= $...@$ref}; $i++) {
For any array @a, the largest index is given by $#a.
$ref is a ref