Help for this page

Select Code to Download


  1. or download this
        while ( my $thread = $sth->fetchrow_hashref() ){
            push @msgs, [$thread->{id}, 
    ...
                         $thread->{day_rate},
                         $thread->{msg}];
        }
    
  2. or download this
        while ( my $thread = $sth->fetchrow_hashref() ){
            # I duplicate the data because DBI says that it may
            # choose to reuse the reference that it returns.
            push @msgs, { %$thread };
        }