Help for this page

Select Code to Download


  1. or download this
    warn Dumper \@msgs;
    
  2. or download this
        while ( my $thread = $sth->fetchrow_hashref() ){
            my (@data) = $thread->{id}, 
    ...
            push @msgs, \@data;
        }
        return @msgs; # although i would likely return \@msgs ...
    
  3. or download this
    sub selectMsgFromDb {
        my ($self, %params) = @_;
    ...
    
        return $messages;
    }