4 ms·
My father is an extensive Perl user, which still is somewhat of a mystery to me. But it seems to be a language very much suited for IT related tasks.
by constantcrying 3y ago
My father is an extensive Perl user, which still is somewhat of a mystery to me. But it seems to be a language very much suited for IT related tasks.
- bayindirh 3y agoPerl is the undisputed god of text processing and manipulation. Most of the "IT related tasks" are essentially "Get the output, understand what it means, and act upon it", which makes Perl a perfect fit for the situation. You can convert an IP to its hex representation and change a symlink in one line. That's a superpower.
- louwrentius 3y agoSounds more like something that is difficult to read/understand. Code readability, being able to understand code 6 months from now is much more important to me. Cramming things in one line can sometimes be neat but Perl took that concept and went bananas, and now Perl has because the punchline to many jokes, justified or not.
- nuker 3y agoIf the joke fits in one line, there is nothing to justify, no paragraphs.
- bayindirh 3y agoWell, the exact code is as follows: $hexip = sprintf("%02X%02X%02X%02X",split('\.',$ip)); system ("cd <REDACTED_PATH>; ln -fs $boothd $hexip"); That's all. I think, in this case, perl being hard to understand is the joke itself.