|
|
|
|
|
by teach
150 days ago
|
|
Perl was the first language I learned on my own after graduating university many years ago. I fell in love with it because of quirks like these and because code written in it can have a poetic quality you don't see often. Now I am old and joyless and I want the code I write for work to be boring and unsurprising. But sometimes one can still want to write poetry. |
|
I learned Perl after trying C; and after struggling with `scanf` (not even getting to tokenization), the ease and speed of `while (<>) { @A = split;` for text-handling made it easy to fall in love. This (in the mid 90s, before Java, JavaScript, and C++ TR1) was also my first contact with associative arrays.
I was also drawn to the style of the Camel Book.
More than most other languages, Perl encouraged one-liners. When I later read PG's "Succinctness is power" essay, I thought of Perl.
https://paulgraham.com/power.html