http://qs1969.pair.com?node_id=51048


in reply to (Ovid) Re(2): ref, no, maybe?
in thread ref, no, maybe?

My gut level feel is that being overly flexible on input parameters is often a sign of premature optimization. And yes, a "ref" in the code means you're looking in the mirror just a little too hard, most often. There are clearly valid uses for ref, but the first reaction I always have is "can we simplify this", and as you discovered, you could.

-- Randal L. Schwartz, Perl hacker