in reply to Re^3: How do I train myself to write more Perl-ish Perl, rather than C-ish Perl?
in thread How do I train myself to write more Perl-ish Perl, rather than C-ish Perl?
There is really only one interpretation you can place on for my $element (@array) and very few ways it can go wrong whether you know Perl or not. On the other hand for ($i = 0; $I < $numOfElements; ++$i) {...} requires a lot of interpretation even if you know C and there are many places it can go wrong. One of the reasons Perl seems to work as expected first off more often than C (and I know this to be true from personal experience) is that you can avoid exactly this sort of issue the vast majority of the time in Perl.
Some Perl idiom is just weird and non-obvious to the non-Perl programmer, but much of it is understandable without arcane Perl knowledge (and simply pulsates with succinct power).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How do I train myself to write more Perl-ish Perl, rather than C-ish Perl?
by KurtSchwind (Chaplain) on Dec 14, 2007 at 02:03 UTC | |
by GrandFather (Saint) on Dec 14, 2007 at 02:44 UTC |