in reply to Re^5: how to force scalar context (without scalar())?
in thread how to force scalar context (without scalar())?

Thanks, but you missed the whole point of my question from the beginning. Please reread the question. My intent is _not_ to replace all occurrence of scalar. Nor I try to re-implement the scalar function.
Boris