in reply to grep function usage
$t^=1 changes the value of $t (and thus the return value) on each execution, 0 or 1 don't.