Forgot your password?
typodupeerror
Perl Programming

Perl Turns 25 263

Posted by Soulskill
from the added-support-for-rental-cars dept.
Several readers sent word that the Perl programming language turned 25 today. In his commemorative post at the Perl Foundation's website, mdk wrote, "So what does the future hold for Perl? Well I don't have a crystal ball but I cannot see the language fading from usage in the next quarter century, the truth of the matter is that even though there are languages that can do some of the things that Perl does, some of them do some things better, others do things Perl wasn't designed for, there is no language that has been designed to do the things that Perl is very good at doing. No language in the current scripting languages seems to have the flexibility, maturity and extensibility of Perl. The main power of Perl has always been its ability to quickly adapt, and be adapted, to suit purposes. ... The greatest challenges we will face for Perl is a shifting end-user base that will become more reliant on devices that are feature focused but crippled in application choice, the rise in mobile devices will continue and Perl will need to evolve to work with that. A better challenge for us to face would be the integration with electronically aware, and connected devices and systems, the apocryphal internet of things, in this Perl could be a powerful tool. I also believe that the more we see a divergence of language uses in the other scripting languages the more they will face issues in their core designs, issues that Perl avoids due to its malleable nature, what some believe is the crippling factor for Perl is likely to be its saving grace as it has the power and flexibility to cope with the shifting goalposts of an increasingly technologically reliant world."
This discussion has been archived. No new comments can be posted.

Perl Turns 25

Comments Filter:
  • Re:Recent convert (Score:5, Insightful)

    by vlm (69642) on Tuesday December 18, 2012 @03:30PM (#42328869)

    AKA I'm a CPAN programmer not a Perl programmer. Works for me! Wake me when another language has the depth of CPAN. I might switch, then. Maybe.

  • Perl Turns 25... (Score:5, Insightful)

    by Frosty Piss (770223) * on Tuesday December 18, 2012 @03:33PM (#42328905)

    ...And is sexier than ever.

  • by Runesabre (732910) on Tuesday December 18, 2012 @03:40PM (#42329009) Homepage

    I remember when Perl was the workhouse behind all custom web server development. One of the few times I had "fun" writing code. Such a cryptic looking language that made perfect sense the moments you are writing it and completely alien days later.

  • by Anonymous Coward on Tuesday December 18, 2012 @03:48PM (#42329127)

    Perl is write-only in the hands of stupid hacks. Oh wait, that's any language.

  • Perl 6? (Score:4, Insightful)

    by kriston (7886) on Tuesday December 18, 2012 @04:00PM (#42329305) Homepage Journal

    Okay, so let's have a roll call of those of us using Perl 6 in production.

    Hands?

    Anybody?

  • by dotgain (630123) on Tuesday December 18, 2012 @04:33PM (#42329761) Homepage Journal
    Your friend should look into revision control software and possibly getting the cat his own terminal. This way the cat's contributions can be easily tracked.
  • by readin (838620) on Tuesday December 18, 2012 @05:02PM (#42330139)
    What I found in using Perl was that no two Perl programmers could read each others code. Much of the expressiveness and versatility that people talk about comes at the expense of a huge amount of syntax and the ability of the language to assume values (like $_ instead of requiring them to be explicit). What happens in practice is people learn a subset of syntax which is large enough to do what they need to do and it often isn't the same subset that someone else learned. And when reading someone else's code, it can be very difficult to look things up because it often isn't even clear what the syntax is (in part because so much gets assumed).

    When the boss hands me a flat text file with 50,000 lines in some random format that needs to be parsed and loaded into the database, I dust off my Perl book and write a short application to read each line and spit out SQL. I don't need the safety of Java or the byte processing of C. I don't need to handle every possible exception that could be thrown when opening a file. I don't need a GUI. I just need to open a file, read a line of text, use some regular expressions, do some tokenizing, and spit out more text into a separate file. Perl is fantastic for that. But I don't find much other use for Perl.
  • by CaptSlaq (1491233) on Tuesday December 18, 2012 @05:08PM (#42330213)

    And, in python: list = [1, 1, 2, 2, 3, 3, 4, 4, ] unique = set(list)

    Which is more readable?

    use List::MoreUtils qw(uniq);

    my @words = qw(foo bar baz foo zorg baz);
    my @unique_words = uniq @words;

    What was that about readability?

  • by bill_mcgonigle (4333) * on Tuesday December 18, 2012 @05:13PM (#42330269) Homepage Journal

    What I found in using Perl was that no two Perl programmers could read each others code.

    That's silly. I'm just a medium-grade Perl jockey and I read and understand other projects' code. I find bugs and submit patches.

    Perl doesn't force good style on you, but if you follow the guides of Perl Best Practices and check yourslelf with Perl Critic [cpan.org] you're going to produce code that most programmers can follow.

    Some people aren't comfortable with 'enough rope to hang yourself', which is fine. Others think that forced indentation is the answer to good code style (I think semantic analysis is better). There are lots of options.

  • by greg1104 (461138) <gsmith@gregsmith.com> on Tuesday December 18, 2012 @06:45PM (#42331315) Homepage

    Programs from 1998 still run because the language has been stagnant ever since. Python breaks because it actually improves sometimes. "The main power of Perl has always been its ability to quickly adapt"...seriously? Perl 6 has been stuck in R&D hell for a dozen years now [slashdot.org]. Even the Duke Nukem Forever team is starting to feel awkward about how long it's taking.

  • Re:libraries first (Score:4, Insightful)

    by FacePlant (19134) on Tuesday December 18, 2012 @07:34PM (#42331733)

    Are you using 5.16.2?
    Are you using Moose/Mouse/Moo for complex data types and/or object oriented programming.?

    Perl is alive and well.

    If you think of 5 as being a syntax identifier, then you might be pleased to see all of the development that's gone on since Perl 4 gave way to Perl 5.

    It sounds a little bit like you're complaining that Perl's development has not followed your idea of semantic version numbering.

E = MC ** 2 +- 3db

Working...