# Returns >0 if there was input, 0 if there was no input # undef indicates some failure.