$f = $pop->waitfor('//'); print "$f\n"; #### ($f) = $pop->waitfor('//'); print "$f\n"; #### ($f, $match) = $pop->waitfor('//'); print "$f$match\n";