print "The sum is @{[1+2+3]}";
produces The sum is 6
instead of having to do: my $sum = 1+2+3;
print "The sum is $sum";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.
Subsequently I've written code in almost every popular programming language and I will frequently go years between languages but even so I have very little trouble picking them back up. Even C++. But not Perl. It's just so weird with so many idiosyncrasies that I just can't remember it.