Hello,

Since I did not get any reply in last few hours. I am now posting this question 
to the perl list too. I apologize if you mind. thank you.




starting with a hash ref....

my $my_hash = {};


building the hash in a loop...


          push(@tmp_arr,$val1);
          push(@tmp_arr,$val2);
          $my_hash->{$index} = \@tmp_arr;



the elements for any key can be access fine as   $my_hash->{$index}[0]



I am passing a hash like this:

    my $vars = {
       myhash => $my_hash                 
    };



PROBLEM: trying to print like this, it prints the index correctly but does not 
print any values.... i am confused why?

    [%- FOREACH index IN myhash.keys.nsort -%]
    <tt>index number=[%index%]  dt-time=[%myhash.$index.0%]  
detail=[%myhash.$index.1%]<tt>
    [% END -%]



_______________________________________________
templates mailing list
templa...@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates


--
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