From Perl to Python

As part of the process of relearning Python, I tried converting my csv2qif script from Perl. It took me a while to get round the different syntax, particularly for reading from files, but the comprehensive documentation helped me over most of the stumbling blocks.

In the past I’ve always been a bit dubious about Python’s use of whitespace as syntax, and I still feel my fingers hovering over the semi-colon and curly brace keys. However, I think the end result is a lot cleaner than the Perl version, and I’ve started to realise that syntax denoting end of statements, blocks etc. is more for the interpreter’s benefit than mine.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.