Help for this page

Select Code to Download


  1. or download this
    sub collect (&@) { collect( $_[0]->() || return @_[1 .. $#_] ) }
    
    my @results = collect { $sth->fetchrow_hashref };
    
  2. or download this
    sub collect (&) { ($_[0]->() || return), &collect; }
    
    my @results = collect { $sth->fetchrow_hashref };