Re: [htmltmpl] nested loops
Brought to you by:
samtregar
From: Philip S T. <phi...@gm...> - 2003-09-29 09:16:53
|
On Mon, 29 Sep 2003, Kenneth Gonsalves wrote: > my %rowdata; > $rowdata{cols} = \@cls; ^^^^^^^^^^^^^^^^^^ you assign a reference to @cls > push (@rows,\%rowdata); > @cls = (); ^^^^^^^ which you then blow away all @rows contain an empty (). Instead, why not just use an anonymous arrayref: my $cls = [], and push into that? You should also quote hash keys. Philip -- [He] took me into his library and showed me his books, of which he had a complete set. -- Ring Lardner |