Hacker News new | ask | show | jobs
by expeditious 5835 days ago
> I'm not sure what you mean by equivalent ...

It means that for basic stuff they are pretty much the same. Variables & data structures (scalars, arrays, mappings), creating and calling functions, creating and instantiating classes, looping, if/then/else, talking to the network, talking to the OS, talking to the db, etc. This basic stuff is in all these languages; the only real differences are in the syntax (and that's not even very different).

For many programming tasks, you're just doing these basics over and over again. Any language will work, so you may as well pick one that's got it where it counts -- modules, since that will make the most difference in how much extra code you have to write. And Perl wins that competition with the CPAN.

> Would they have gone off in search of the Holy Grail with Perl 6 ...

Thing is, it's not a Holy Grail. It's just the next revision of Perl. Take a look at some example Perl 6 code online; they've cleaned things up, fixed some boo-boos, and upon seeing it I expect you'll matter-of-factly say, "oh, yeah, still looks like Perl :)".

1 comments

Perl6 was started in the year 2000. It's a lot more than a rev from 5.08 to 5.12, for example. Can you elaborate on some of the more details? For example, what concepts from Ruby and Python are they borrowing in Perl6 that don't exist in Perl5? Wikipedia didn't elaborate.

http://en.wikipedia.org/wiki/Perl6#Goals

Sure, at some high-level they're all the same, but the devil is in the details. Just saying they're all the same is specious.

Actually melling, thanks for calling me on that. Thinking more about it, I think Perl 6 actually has 2 sides: one is the "like Perl 5 but with a number of things improved/cleaned-up", and the other side (which I neglected to think about in my post above) is indeed some major and sophisticated changes (many of which I know little about since I most often use Perl in a simplistic way -- do this, open that file, process these log files, etc.).

If you have some specific questions, I suggest asking them at http://perl6.org/community/irc , which I've found to be very friendly and helpful.

perl6 is a huge leap beyond the current crop of interpreted languages. Go through this content to get an idea:

http://perlgeek.de/blog-en/perl-5-to-6/