while( all( my $x = $db->getData() & my $y = $lwp->getData() ) ) { ## use $x and $y }