in reply to How do I train myself to write more Perl-ish Perl, rather than C-ish Perl?
I guess I have a different take.
Why bother? If the C-style works for you then stick with it. I have the same "problem" in that I think in C and kind of do a translation. I reach for C loops all the time when I could be using a map or something. Maybe that's not ideal. But it certainly works and it's easy to maintain. It's also easy to read.
Part of what I like about Perl is that I can write in a C-style and then when I hit a bump (sort of like you have there with wanting to jump out of the outer loop from the inner one) THEN I can use some Perl nicities.
|
---|