I think we should use the old method of just doing `$num ^= $_ if /^\d+$/;`. There are regexp checks, but we generally don't want to be executing just about any code here.