Think about Loose Coupling | |
PerlMonks |
Re^3: What is the difference between $array[1] and @array[1]?by ikegami (Patriarch) |
on Apr 07, 2009 at 16:29 UTC ( [id://756071]=note: print w/replies, xml ) | Need Help?? |
It's meant to enforce style, but I agree with the style being enforced, and it can detect typos (refactoros?).
Do you honestly think in terms of lists when you do $a[4]? I don't.
Of course. I didn't mean to imply otherwise. Note that Perl doesn't warn when you don't use a constant.
In fact, using $ wouldn't work in that situation.
I can't figure out what you think I was saying, but hopefully this clears it up.
In Section
Seekers of Perl Wisdom
|
|