in reply to Re^3: Perl in general
in thread Perl in general
I've also coded in Python and dislike its required indentation. Have to make sure your editor/IDE is set up to not mix spaces and tabs, otherwise you can easily end up with code that looks right, but the Python compiler "sees" it differently.
Though, I started coding in BASIC, then C, so working with a language where indentation is part of the syntax was and still is alien to me.
(Yes, indentation makes code easier to read, but I don't rely on it. Sometimes, I will use a "pretty printer" tool to reformat C code to help me read it. That has actually helped me find some bugs. With Perl, you can use <c>perl -MO=Deparse -c</o> to see how Perl's compiler "sees" your code.)
You mention using PHP. PHP's syntax is closer to Perl's than it is to Python's. That can be both good and bad when moving from PHP to Perl. While Perl will feel less alien, it's somewhat easy to try doing something the "PHP way" while coding Perl (and vice-versa).
|
|---|