Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat are some elegant features or uses of Perl?
    text
    copied!<blockquote> <p>What? Perl Beautiful? <a href="https://stackoverflow.com/questions/563036/what-is-elegant-code">Elegant</a>? He must be joking!</p> </blockquote> <p>It's true, there's some ugly Perl out there. And by some, I mean lots. We've all seen it.</p> <blockquote> <p>Well duh, it's symbol soup. Isn't it?</p> </blockquote> <p>Yes there are symbols. Just like 'math' has 'symbols'. It's just that we programmers are more familiar with the standard mathematical symbols. We grew to accept the symbols from our mother languages, whether that be ASM, C, or Pascal. Perl just decided to have a few more.</p> <blockquote> <p>Well, I think we should get rid of all the unnecessary symbols. Makes the code look better.</p> </blockquote> <p>The language for doing so already exists. It's called <a href="http://en.wikipedia.org/wiki/Lisp_programming_language" rel="nofollow noreferrer">Lisp.</a> (and soon, <a href="http://perlgeek.de/blog-en/perl-5-to-6/" rel="nofollow noreferrer">perl 6</a>.)</p> <blockquote> <p>Okay, smart guy. Truth is, I can already invent my own symbols. They're called functions and methods. Besides, we don't want to reinvent <a href="http://en.wikipedia.org/wiki/APL_%28programming_language%29" rel="nofollow noreferrer">APL</a>.</p> </blockquote> <p>Oh, fake alter ego, you are so funny! It's really true, Perl can be quite beautiful. It can be quite ugly, as well. With Perl, <a href="http://en.wikipedia.org/wiki/There_is_more_than_one_way_to_do_it" rel="nofollow noreferrer">TIMTOWTDI</a>.</p> <p>So, what are your favorite elegant bits of Perl code?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload