Peregrine reports 2nd-quarter loss but tops expectations