No such thing as a small change | |
PerlMonks |
Re: small steps toward Perl literacy, temp vars and parenthesesby hardburn (Abbot) |
on Jun 16, 2004 at 21:17 UTC ( [id://367433]=note: print w/replies, xml ) | Need Help?? |
In the second bit of code there is a lot of contextual info to tell one to jump to I've learned to stop worrying about this and enjoy writing LISP in Perl :) Removing my tounge from my cheek, I think people shouldn't expect Perl to just be interpreted C. People who have a strong C background may have problems reading chained operations like that, but it's standard operating procedure in LISP and other functional languages. So when somebody tells you that the code you shown above is sloppy, you'll know which community they come from. Now, I think you are correct to say that the index isn't a very pleasing way to end the statement. Maybe this will do it (untested):
Of course, now you have to explain to The Complainer the difference between lists and arrays. ----
In Section
Meditations
|
|