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 <= $...@$ref}; $i++) {

should be

for my $i ( 0 .. $#$ref ) {

And

     for(my $i=0; $i <= $...@$ref}; $i++) {
     push(@$temp_table,$ref->[$i]);}

should be

     push @$temp_table, @$ref;




John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity.               -- Damian Conway

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to