Problems? Is your data what you think it is? | |
PerlMonks |
Re: (Ovid) Re(2): ref, no, maybe?by merlyn (Sage) |
on Jan 11, 2001 at 05:22 UTC ( [id://51048]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|