Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Perl's Extreme Makeover

Posted by CmdrTaco on Thu Feb 19, 2004 05:40 PM
from the we-likes-it-don't-we-precious dept.
PurdueGraphicsMan writes "There's an article over at Yahoo! about the upcoming version of Perl (version 6) and some of the new features (RFC list). From the article: "Although Perl 5's expressions are the most sophisticated available and aspired to by other programming languages, "no one pretends for a moment that they're anything but hideously ugly," said Damian Conway, a core Perl developer and associate professor at Monash University in Australia.""
This discussion has been archived. No new comments can be posted.
Perl's Extreme Makeover | Log In/Create an Account | Top | 408 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • by microbob (29155) on Thursday February 19 2004, @05:41PM (#8333087)
    Good! Looks like they kept Perl5 in mind and it will flip into a special mode to execute older Perl5 code.

    Nice!

    -mb
  • Perl: The Beginning (Score:5, Funny)

    by Anonymous Coward on Thursday February 19 2004, @05:43PM (#8333106)
    a ,There's been
    a 0 an explosion
    a /|\ at the ASCII
    a | factory!!!!
    a /|
    • sure by Anonymous Coward (Score:1) Thursday February 19 2004, @06:23PM
    • Re:Perl: The Beginning (Score:5, Interesting)

      by perly-king-69 (580000) on Thursday February 19 2004, @07:18PM (#8334234)
      well, this is quite proper and normal syntax:
      s/(.*?\s+)\(.*?\)/$1/g
      Looks like an explosion in the ascii factory to me!
      [ Parent ]
      • Re:Perl: The Beginning by sumengen (Score:2) Thursday February 19 2004, @10:57PM
      • Re:Perl: The Beginning (Score:5, Insightful)

        by perljon (530156) on Thursday February 19 2004, @11:06PM (#8336239)
        (http://www.hogue.org/)
        s/(.*?\s+)\(.*?\)/$1/g

        This is trying to match something like adsfdfsdfs()ASDfasd#@$!@afd (adsfad@#$@!)
        and replace it with
        asdfa asdfa asdf adsfdfsdfs()ASDfasd#@$!@afd

        or basically, get rid of things in parenthises that are after at least one white space.

        so,
        s/\s+\(.*?\)//g would work...

        but still a lot of slashes

        so try this
        my $stuffInParen = qr| \(.*?\) |;
        s/\s+ $stuffInParen //gx;

        or even
        my $stuffInParen = qr| \(.*?\) |;
        my $whiteSpace = qr| \s+ |;

        s/$whiteSpace $stuffInParen//gx;

        now, you can look at the code and have a pretty good idea what it's doing. (even without comments). we're switching stuffInParens that follow whitespace with nothing. just because Perl gives you the flexability to write ugly code doesn't mean you should. if you are writing perl code and it looks ugly, you're doing it wrong. you should find another way to do it... with great power comes great responsability.

        see http://www.perl.com/lpt/a/2003/06/06/regexps.html [perl.com] for more info.
        [ Parent ]
      • Re:Perl: The Beginning by GerritHoll (Score:2) Friday February 20 2004, @04:44AM
      • Re:Perl: The Beginning by aerique (Score:2) Friday February 20 2004, @04:57AM
    • Attention: by Anonymous Coward (Score:1) Thursday February 19 2004, @09:05PM
    • 5 replies beneath your current threshold.
  • Perl Haikus (Score:5, Funny)

    by Anonymous Coward on Thursday February 19 2004, @05:43PM (#8333114)
    Okay, about 99% of the Perl Haikus will not apply anymore.
  • Trolling, maybe by fsterman (Score:2) Thursday February 19 2004, @05:43PM
    • Re:Trolling, maybe (Score:5, Insightful)

      by irc.goatse.cx troll (593289) on Thursday February 19 2004, @05:51PM (#8333207)
      (Last Journal: Saturday September 20 2003, @01:55PM)
      Perl5 has lasted us 10 years. If they were to do one major change a month, messing with backwards compatability in your scripts would become a major pain. This way its atleast one major headache rather than a decade long depression.
      [ Parent ]
    • Re:Trolling, maybe (Score:5, Informative)

      by rgmoore (133276) * <glandauer@charter.net> on Thursday February 19 2004, @06:10PM (#8333446)
      (http://www.cityofhope.org/microseq)

      You might be interested in Ponie, then. Ponie is the project to create a Perl5 interpreter for Parrot. It should let you get much of the speed benefit of the new virtual machine without having to learn the new Perl6 syntax. Of course you may still want to learn the new syntax, since it will add many powerful new features, but Ponie will ensure that Perl5- and all of the work you've put into your Perl5 scripts- won't be completely abandoned just because Perl6 has come out.

      [ Parent ]
    • Re:Trolling, maybe by mrogers (Score:1) Friday February 20 2004, @03:24AM
  • We're all going to die (Score:5, Interesting)

    by StuWho (748218) on Thursday February 19 2004, @05:44PM (#8333120)
    (Last Journal: Friday February 20 2004, @04:11PM)
    "But Perl also will remain a language with the diehard developer fans who are the impetus behind its popularity. "Personally, I'm hoping to get Parrot embedded into games and office suites," Sugalski said. "I for one would love to write my word processing macros and game scripts in Perl or Forth rather than in whatever hand-rolled language someone's come up with."

    Back to Pac Man and Vi then...

  • quick question.... (Score:5, Funny)

    by thepyre (697537) on Thursday February 19 2004, @05:46PM (#8333140)
    "no one pretends for a moment that they're anything but hideously ugly," Does he mean the lines of code or the programmers themselves?
  • 18 months away... by Anonymous Coward (Score:1) Thursday February 19 2004, @05:46PM
  • Expressions .. (Score:4, Insightful)

    .. is why I prefer python over perl. The resulting code is soo much cleaner.

    I suppose it has to do with the old debate of losely or strict typed langauges. Perl is highly modular but I would hate to work in a team of 10 or more perl developers all writing in their own styles and methods. Shudder.

    Yahoo decided to support php rather then perl in their next generation yahoo services specificially because of "There is more then one way to do it".

    Of course its all being outsourced to India now where they can just hire more developers if complex problems arrise
    • Re:Expressions .. (Score:5, Insightful)

      by Xzzy (111297) <sether AT tru7h DOT org> on Thursday February 19 2004, @05:55PM (#8333257)
      (http://tru7h.org)
      > .. is why I prefer python over perl. The resulting code is soo much cleaner.

      Yes but you have to admit that perl has a certain charm about it.

      Haven't you ever sat there staring at a subroutine, thinking to yourself "man I sure wish I could just hold shift and slide my finger over the number row to get this done"? Then gone on and painstakingly crafted what you wanted to do in whatever strict language you were actually working in? ;)

      Maybe it's just me. But every time I sit down and promise myself to write a new script all tidy and clean in python, about five minutes into it I'm muttering "if this were perl I coulda been DONE by now" and quickly revert back to old faithful.
      [ Parent ]
      • Re:Expressions .. (Score:4, Insightful)

        by kfg (145172) on Thursday February 19 2004, @06:06PM (#8333398)
        Yes, but the flip side comes only a day later, when I sit down at my Python code and immediately start editing.

        Whereas I look at my Perl code for about an hour and a half thinking, "Ummmmmmm, what the fuck is this supposed to mean?

        Not that either of them have a patch on APL, mind you. APL Roolz.

        KFG
        [ Parent ]
        • Re:Expressions .. by zeroclip (Score:1) Thursday February 19 2004, @06:10PM
          • Re:Expressions .. (Score:5, Insightful)

            by Tony Hoyle (11698) <tmh@nodomain.org> on Thursday February 19 2004, @06:16PM (#8333520)
            (http://www.nodomain.org/)
            Untrue.. I've seen code in my lifetime that would turn your hair grey. It's pretty easy to write unreadable junk in most languages. Perl makes it *really* easy (since almost everything you type will compile.. it's making it do anything useful that's the hard bit), and alas a lot of people seem to be churning out the junk daily.

            If you haven't got the time to write something properly, forget it - you'll only regret it if you write junk.
            [ Parent ]
          • Re:Expressions .. by weave (Score:2) Friday February 20 2004, @09:14AM
        • Ever heard of comments? (Score:5, Interesting)

          by cLive ;-) (132299) on Thursday February 19 2004, @06:45PM (#8333882)
          (http://cliveholloway.net/ | Last Journal: Saturday February 28 2004, @05:54PM)
          They're great. They help you to remember and comprehend code you wrote a while back. If you start a line with a "#" you can follow it with a comment.

          If you're looking at code *you wrote* for over an hour without understanding it, you only have yourself to blame. Unless you're coding in brainfuck [catseye.mb.ca], I suppose.

          tch

          cLive ;-)

          [ Parent ]
          • Re:Ever heard of comments? by x3ro (Score:2) Thursday February 19 2004, @07:26PM
            • right...but (Score:5, Insightful)

              by cLive ;-) (132299) on Thursday February 19 2004, @07:54PM (#8334566)
              (http://cliveholloway.net/ | Last Journal: Saturday February 28 2004, @05:54PM)

              I'm not sure how "Healthy, readable code with sensible naming conventions and a clear structure" explains to you at a later date why you coded as you did. If you had to write something that looks out of place to deal with some legacy code you inherited, I'm sure you'd psychically pick that up just by glancing at the code. Or perhaps you go round naming vars something like $quirky_flag_to_pick_up_strange_situation_caused_b y_bad_code_in_package_X?

              And what if someone less experienced than yourself has to maintain your code at a later date? Something that may seem obvious to you may be off of their radar.

              If you never have to ask why and no one less intelligent than you ever looks at your code you either are very very lucky, very stupid or unemployed.

              .02

              cLive ;-)

              [ Parent ]
              • Re:right...but by cLive ;-) (Score:3) Friday February 20 2004, @01:54AM
                • htmlarea by cLive ;-) (Score:2) Friday February 27 2004, @03:27PM
                • 1 reply beneath your current threshold.
              • 1 reply beneath your current threshold.
            • Re:Ever heard of comments? by Flashbck (Score:3) Thursday February 19 2004, @08:07PM
            • Re:Ever heard of comments? (Score:5, Insightful)

              by curunir (98273) * on Thursday February 19 2004, @09:08PM (#8335326)
              (http://localhost/ | Last Journal: Tuesday January 16 2007, @02:40PM)
              I'd say Comments are more like Grandpa...

              He can tell you some really interesting stories about times you can't remember, but he slows you down immensely so he usually gets left at the old folks home while you try to get where ever you're trying to go.
              [ Parent ]
              • 1 reply beneath your current threshold.
            • Re:Ever heard of comments? by Mr_Silver (Score:3) Friday February 20 2004, @05:41AM
          • Re:Ever heard of comments? by Bingo Foo (Score:2) Thursday February 19 2004, @08:13PM
          • 1 reply beneath your current threshold.
        • Re:Expressions .. by Bingo Foo (Score:3) Thursday February 19 2004, @08:04PM
        • Re:Expressions .. by kfg (Score:1) Thursday February 19 2004, @06:20PM
        • 1 reply beneath your current threshold.
      • Re:Expressions .. by mcrbids (Score:3) Friday February 20 2004, @02:50AM
      • Re:Expressions .. by Goaway (Score:3) Thursday February 19 2004, @06:14PM
      • 2 replies beneath your current threshold.
    • Re:Expressions .. by Anonymous Coward (Score:1) Thursday February 19 2004, @06:00PM
    • Re:Expressions .. (Score:5, Insightful)

      by consumer (9588) on Thursday February 19 2004, @07:09PM (#8334134)
      Yahoo decided to support php rather then perl in their next generation yahoo services specificially because of "There is more then one way to do it".

      Pretty ironic when you consider that PHP has exactly the same issue, along with some other issues Perl does not have (lack of namespaces, inadequate comparison operators, etc.).

      [ Parent ]
    • Re:Expressions .. by Christianfreak (Score:3) Thursday February 19 2004, @07:46PM
    • Re:Expressions .. by kooso (Score:1) Thursday February 19 2004, @08:22PM
    • Re:Expressions .. by DrewFish (Score:1) Friday February 20 2004, @10:53AM
    • Re:Expressions .. by Kirby (Score:2) Friday February 20 2004, @02:27PM
    • 6 replies beneath your current threshold.
  • The Parrot Engine? by blcamp (Score:2) Thursday February 19 2004, @05:47PM
    • Re:The Parrot Vaporware Engine? (Score:4, Informative)

      by J-Worthington (745904) on Thursday February 19 2004, @06:17PM (#8333535)
      (http://www.jwcs.net/~jonathan/)
      I have a small involvement with Parrot (e.g. I've contributed a few small, insignificant things, mainly fixes for Win32). It's not vaporware, it's just that designing a stable, efficient, multi-threaded virtual machine that runs on a wide range of different platforms isn't an easy task. You can go and do a CVS checkout of Parrot now and play with some of the toy compilers, or if you use Windows grab yourself the Parrot On Win32 compiled version:-
      http://www.jwcs.net/developers/perl/pow /

      The 0.1 release may be coming by the end of this month - and if this release isn't 0.1, I'm pretty sure the next one will be. That means Parrot has objects, some of the threading stuff is in place, JIT is working on various platforms and more. There's a lot of hard work going in by a lot of very good developers (not me!), and I'm confident that Parrot will be completed and will be a hot target for dynamic languages.
      [ Parent ]
    • 2 replies beneath your current threshold.
  • Ruby... by Tyler Eaves (Score:1) Thursday February 19 2004, @05:47PM
    • Re:Ruby... by Hawkins (Score:1) Thursday February 19 2004, @05:54PM
    • No, Python by Anonymous Coward (Score:1) Thursday February 19 2004, @06:00PM
    • Re:Ruby... (Score:5, Insightful)

      by vt0asta (16536) on Thursday February 19 2004, @06:00PM (#8333334)
      ...provides almost all of Perls power, with none of the ugliness... [emphasis mine]

      ...or the online documentation, the unit testing facilities, the CPAN repositories, the portablility, or the developer community.

      Sorry, but you had missed some things that Ruby has none of compared to Perl.

      [ Parent ]
      • Re:Ruby... (Score:5, Informative)

        by Tyler Eaves (344284) on Thursday February 19 2004, @06:07PM (#8333407)
        (http://www.cg2.org/)
        You mean like:

        Doc

        http://www.ruby-doc.org/ [ruby-doc.org]

        http://www.rubycentral.com/book/ [rubycentral.com]

        Unit Testing

        http://testunit.talbott.ws/ [talbott.ws]

        http://www.rubygarden.org/ruby?RubyUnit [rubygarden.org]

        Library Repository

        http://raa.ruby-lang.org/ [ruby-lang.org]

        Portability
        Source compiles on anything vaugely Unix like

        Windows binaries available

        User Community
        comp.lang.ruby [lang.ruby]

        So, what were you on about again?

        [ Parent ]
        • Re:Ruby... by Anonymous Coward (Score:2) Thursday February 19 2004, @06:19PM
        • Re:Ruby... by Anonymous Coward (Score:1) Thursday February 19 2004, @06:23PM
        • Re:Perl... (Score:5, Informative)

          by vt0asta (16536) on Thursday February 19 2004, @06:25PM (#8333627)
          No, I mean like:

          Doc

          Something a little more thorough.

          http://www.perldoc.com/ [perldoc.com]

          Unit Testing

          Not just wrappers, but something a little more thorough and mature like say from executable to module.

          Unit Testing [newportal.com]

          Library Repository

          http://raa.ruby-lang.org/ [ruby-lang.org]
          ..pales in comparison to...

          http://www.cpan.org/ [cpan.org]

          Portability

          [Acorn] [AIX] [Amiga] [Apple] [Atari] [AtheOS] [BeOS] [BSD] [BSD/OS] [Coherent] [Compaq] [Concurrent] [Cygwin] [DG/UX] [Digital] [DEC OSF/1] [Digital UNIX] [DYNIX/ptx] [EMC] [Embedix] [EPOC] [FreeBSD] [Fujitsu-Siemens] [Guardian] [HP] [HP-UX] [IBM] [IRIX] [Japanese] [JPerl] [Linux] [LynxOS] [Macintosh] [Mac OS] [Mac OS X] [MachTen] [Minix] [MinGW] [MiNT] [MPE/iX] [MS-DOS] [MVS] [NetBSD] [NetWare] [NEWS-OS] [NextStep] [Novell] [NonStop] [NonStop-UX] [OpenBSD] [ODT] [OpenVMS] [Open UNIX] [OS/2] [OS/390] [OS/400] [OSF/1] [OSR] [Plan 9] [Pocket PC] [PowerMAX] [Psion] [QNX] [Reliant UNIX] [RISCOS] [SCO] [Sequent] [SGI] [Sharp] [Siemens] [SINIX] [Solaris] [SONY] [Sun] [Symbian] [Stratus] [Tandem] [Tru64] [Ultrix] [UNIX] [U/WIN] [Unixware] [VMS] [VOS] [Win32] [WinCE] [Windows 3.1] [Windows 95/98/Me/NT/2000/XP] [z/OS]

          User Community

          A little more world wide and established.

          http://www.pm.org/ [pm.org] ...in addition to the mailing lists.

          So, what were you on about again?

          From the parent parent parent poster. "Ruby has almost all of the power of Perl, with none of the ugliness" isn't quite a fair statement, considering Ruby is lacking or behind on almost everything else Perl is superior at. Ruby is still playing catch up, and depending on who you ask, can also be considered ugly.

          [ Parent ]
          • Re:Perl... by vt0asta (Score:3) Thursday February 19 2004, @08:14PM
            • Re:Perl... by Hawkins (Score:1) Friday February 20 2004, @06:39AM
          • 2 replies beneath your current threshold.
        • Re:Ruby... by Adartse.Liminality (Score:1) Thursday February 19 2004, @07:10PM
      • Re:Ruby... by Baki (Score:2) Thursday February 19 2004, @06:14PM
    • 2 replies beneath your current threshold.


  • Unreadable code,
    Why would anyone use it?
    Learn a better way.

    ugliness that grows
    into beauty inside of
    your favorite shell

    Arbitrarily
    Nested structures for data;
    Joy of birds in flight.

    As with the spring rain
    Perl is indispensable
    Unquestionable

    http://aspn.activestate.com/ASPN/Perl/Haiku/Abou tP erl
  • Anyone who intimately knows 5 (Score:5, Interesting)

    by devphaeton (695736) on Thursday February 19 2004, @05:49PM (#8333181)
    ...would be able to tell me if i should

    a) start learning 5 anyways

    or

    b) wait till 6 is released, because going from barely having a grasp on 5 and then trying to learn 6 would just confuse myself?

    i realise that all the perl5 code in the world won't suddenly cease function the minute perl6 is released, but still..

    I can see the value in perl, and what a great tool it is, but for some reason i have a hard time wrapping my lil brain around it. It's a bit less "structured" or "consistent" than say C is. I suppose it has to be that way in order to do what it does, though.
    • Re:Anyone who intimately knows 5 (Score:5, Interesting)

      by smack_attack (171144) on Thursday February 19 2004, @05:53PM (#8333236)
      (http://hammeroftruth.com/)
      Learn 5, because it will probably take a few months until 6 is standard. Either way, in a few years you will look back on whatever you coded today and shake your head in shame. /used to printf() every line when he learned PHP
      [ Parent ]
    • Re:Anyone who intimately knows 5 by deja206 (Score:3) Thursday February 19 2004, @05:58PM
    • Re:Anyone who intimately knows 5 (Score:5, Informative)

      by psycho_tinman (313601) on Thursday February 19 2004, @05:59PM (#8333325)
      (Last Journal: Saturday June 05 2004, @07:06AM)

      I cannot claim to intimately know Perl 5, but I started learning it a few years back. I belong to the camp of Perl programmers (and I know there are a few of these) who are adopting a "wait and see" attitude to Perl 6.

      If you're interested in learning Perl now, you should probably go for the cookbook approach, ie: get a copy of OReilly's Perl cookbook and just try applying the solution to your problem. Then, trying tweaking and figuring out how it works.

      As for learning Perl 5, I'd probably point out that there are still some places that run 5.005_03 (certainly Solaris used to ship with that version by default), and that version is at LEAST 5-6 years old :) There are even some places I've heard of that run Perl 4 :) So, I think there is plenty of time to have your investment in learning Perl pay off before people start switching to Perl 6 en masse.

      [ Parent ]
    • Re:Anyone who intimately knows 5 (Score:5, Informative)

      by Telastyn (206146) on Thursday February 19 2004, @06:03PM (#8333359)
      Personally, I found that perl was kind of odd and not fantastic until I learned perl with regexes [via O'Reilly's Mastering Regular Expressions, highly recommended]. Then alot of the little nuances made alot more sense. Alot of the examples in that book were things perl does easily in a few lines, but would cause most programmers to gouge their eyes out if they needed to do it in C.

      [ Parent ]
    • Re:Anyone who intimately knows 5 by amplt1337 (Score:3) Thursday February 19 2004, @06:05PM
    • Re:Anyone who intimately knows 5 (Score:5, Insightful)

      by ChaosDiscord (4913) on Thursday February 19 2004, @06:05PM (#8333387)
      (http://www.highprogrammer.com/alan/ | Last Journal: Saturday April 29 2006, @04:33PM)
      start learning 5 anyways or ... wait till 6 is released

      Learn Perl right now because it will make your life better (assuming your life can be made better by a powerful scripting language/glue-layer from heck). Perl 6 is still far off on the horizon and Perl 5 knowledge will largely transfer to Perl 6.

      I can see the value in perl, and what a great tool it is, but for some reason i have a hard time wrapping my lil brain around it. It's a bit less "structured" or "consistent" than say C is.

      I think that setting out to learn Perl for its own sake will generally not work. One of Perl's strengths is that it grows with you and your needs. Learn a little bit of Perl and you still solve some very useful problems. For example, many people first learned Perl to do some quick-and-dirty projects like one-off data file reformatting, internal report generation, or simple CGI scripting. Learn more as you need it. It's taken me years to get to the point where I might call myself a skilled Perl hacker. But every step along the way was pleasant. I never felt I was learning stuff for the sake of learning stuff; I was always learning something that made my goals right now easier to achieve.

      Perl is about serving you, not you serving it.

      [ Parent ]
    • Re:Anyone who intimately knows 5 by hpavc (Score:2) Thursday February 19 2004, @06:08PM
    • Re:Anyone who intimately knows 5 (Score:4, Informative)

      by cLive ;-) (132299) on Thursday February 19 2004, @06:10PM (#8333449)
      (http://cliveholloway.net/ | Last Journal: Saturday February 28 2004, @05:54PM)

      Start now. It's gonna be a while before six is out - and even longer before companies will trust it in production environments.

      And come over to The Monastery to get help when needed. A great resource for new (and experienced!) Perl hackers. [perlmonks.org]

      .02

      cLive ;-)

      [ Parent ]
    • Learn 5 first by Captain Tripps (Score:2) Thursday February 19 2004, @06:11PM
    • Re:Anyone who intimately knows 5 (Score:5, Insightful)

      by Phillup (317168) on Thursday February 19 2004, @06:54PM (#8333966)
      Over twenty years I've programmed with at least as many languages.

      So, I won't claim to know any language intimately.

      But... I have programed in Perl for the last five years. Why is simple.

      Because Perl let's me leverage the last 20 years of programming. If they see a good idea in another language... they put it in Perl.

      You will see a lot of people complain because of how Perl code looks. The simple fact is that you can write clean looking code... or ugly code. Perl doesn't care. It is your code... do it the way you want.

      Perl's strength is that it let's a programmer program the way they want to. That is also it's weakness.

      My advice would be to spend a few more years with a few other languages. You won't appreciate Perl until you know how elegantly it lets you solve some problems that you have used other tools for.

      If you are looking for "structure" and don't have the discipline to enforce it yourself... then stay away from Perl.
      [ Parent ]
    • Re:Anyone who intimately knows 5 (Score:5, Insightful)

      by thogard (43403) on Thursday February 19 2004, @07:10PM (#8334141)
      (http://web.abnormal.com/)
      The procedural stuff will remain the same. The OOD is getting a decent syntax and will no longer be a bolted on hack.

      Perl started life as shell script with a built in sed and awk. It has since grown.

      The regex stuff in perl 5 is just like sed and grep as far as new user is concerned. The simple regex stuff won't change with perl 6 and the concepts are the same. Perl 6 is going to change the shortcut symbols for the regex expressions.

      Perl5 have has a =~ operator that is going to get replaced with a ~~ operator. The ~~ will work in many places where the perl5 =~ won't work. This is part of the push to make perl more orthogonal.

      Perl6 will also deal with unicode out of the box with no real issues. Perl5's unicode was a bit of a hackjob as the coders learned along the way. Not that unicode is understood, it will be done right. Some of perl6 seems to be intended to get rid of bad practices based on the concept that "all the world is ascii". For example in Perl upto 6 you can say [a-zA-Z] to mean letters but that won't pickup up the latin-8 char set. Perl6is going to make it harder to say that and easy to say "Letters in the current language".

      The list processing may get to the point that it is on the same level as lisp.

      Perl6 appears to about about 18 months away so if your going to wait, its a long wait.

      Damian Conway gave a great talk on this just a few days ago. If you get a chance to hear him talk, take it.
      [ Parent ]
    • Re:Anyone who intimately knows 5 by barries (Score:2) Thursday February 19 2004, @07:17PM
    • Re:Anyone who intimately knows 5 by Paul Crowley (Score:2) Friday February 20 2004, @04:29AM
    • Re:Anyone who intimately knows 5 by SpaghettiPattern (Score:1) Friday February 20 2004, @05:25AM
    • 1 reply beneath your current threshold.
  • Who would have thought! (Score:5, Funny)

    by Saeed al-Sahaf (665390) on Thursday February 19 2004, @05:49PM (#8333184)
    (http://nojailforpot.com/)
    "hideously ugly" and "Perl" in the same paragraph? Who would have thought!
  • Slashdotted. Here's the text (Score:5, Funny)

    by Bingo Foo (179380) on Thursday February 19 2004, @05:49PM (#8333188)
    Since the article is slashdotted, I have reprinted the text below:

    $_

  • Why was Perl5 so Popular? (Score:5, Interesting)

    by use_compress (627082) on Thursday February 19 2004, @05:50PM (#8333194)
    (Last Journal: Thursday February 26 2004, @12:47AM)
    With such bloated and obscure syntax in both the language and regular expressions, why do you think Perl 5 has become so popular? Once you've written a few programs in it, it is ULTRA EASY, ULTRA FAST and not hard to remember. An experienced Perl programmer could probablyl do almost any text processing task in a third of what it would take an expert C++ programmer to do. All of the bloat and lack of orthogonality and "bad design" paradoxically makes Perl 5 a fantastic language to program. I hope Wall doesn't mess this up...
    • Re:Why was Perl5 so Popular? by Anonymous Coward (Score:1) Thursday February 19 2004, @06:00PM
    • Re:Why was Perl5 so Popular? by deja206 (Score:2) Thursday February 19 2004, @06:04PM
    • Re:Why was Perl5 so Popular? by zeroclip (Score:1) Thursday February 19 2004, @06:15PM
    • Re:Why was Perl5 so Popular? (Score:5, Insightful)

      by Garin (26873) on Thursday February 19 2004, @06:30PM (#8333694)
      Definitely true. There is only one reason why Perl code is so frequently ugly:

      Perl exposes the mind of the programmer more directly than any other programming language.

      If you are more interested in quick hacks and dirty tricks than writing clean and manageable code, your perl will reflect that. If you are interested in impressing people by compressing seventeen operations into a single line of code, your perl will be an ugly, ugly thing.

      However, if your intention is to write clear, maintainable, understandable code, then this is what you will write. It isn't hard -- in fact I believe that Perl's flexibility makes this a much easier task than just about any other language. Here are a few of my favourite rules for Perl programmers:

      1) Just because you can, doesn't mean you should.

      2) One line of code means one operation or idea. MAAAAYBE 2. See point #1.

      3) If there is a cute, short, hackerish way to do something, and a longer, more boring, more explicit way to do the same thing, ALWAYS pick the boring way. Anyone who looks at your code in six months will be very pleased (instead of ready to kill you). Since Perl is so flexible, this is always possible. As for performance, well, in my experience the slick, hackerish ways of doing things often slow things down more than the explicit-using-more-lines way of doing things.
      [ Parent ]
    • Re:Why was Perl5 so Popular? by miu (Score:3) Thursday February 19 2004, @06:45PM
    • Re:Why was Perl5 so Popular? by WWWWolf (Score:2) Thursday February 19 2004, @06:52PM
    • Re:Why was Perl5 so Popular? by imbaczek (Score:1) Thursday February 19 2004, @07:40PM
  • Too many cooks (Score:4, Interesting)

    by ObviousGuy (578567) <ObviousGuy@hotmail.com> on Thursday February 19 2004, @05:51PM (#8333212)
    (http://goat.cx/ | Last Journal: Wednesday August 18 2004, @02:34PM)
    While no one would ever accuse Perl of being single minded and focused, until Perl5 it was a fairly coherent language.

    I understand that Perl6 is supposedly an evolution of the language, but there are so many suggestions for so many features and changes that the language itself seems to suffer from the too many cooks problem. With everyone and their brother suggesting features, the language itself becomes a mish mash of these features without a central theme tying it all together. Even if you said that DWIM was the central theme, can you really justify that when WIM is not what the language does because the feature that I'm using was designed by someone who had a completely different idea of what he meant?

    In the past Perl has added functionality that was useful and you can see where the language has its partitions. Base Perl (datatypes, simple arithmetic, simple string manipulation), nested datastructures, regexes, OO, and so on. While admittedly a mess, each addition to the language brought more power and ease. Perl6, OTOH, seems to be adding feature after feature without regard to whether it makes the language easier to use, only more powerful.

    So you end up with a new interpreter that won't run your old scripts without modifying the scripts. At the very least it should automatically default to Perl5 syntax unless otherwise told to use Perl6 syntax. Unfortunately, in the push to evolve, Larry and Damian (and the rest of the lunatics) have foregone automatic backwards compatibility.

    I'll probably migrate, but not for a while.
  • From the horse's mouth (Score:5, Informative)

    by ChaosDiscord (4913) on Thursday February 19 2004, @05:53PM (#8333235)
    (http://www.highprogrammer.com/alan/ | Last Journal: Saturday April 29 2006, @04:33PM)

    If you want the real scoop on the on-going planning of Perl 6, you might want to check out Larry Wall's Apocalypse articles: 1 [perl.com], 2 [perl.com], 3 [perl.com], 4 [perl.com], 5 [perl.com], 6 [perl.com]. On the down side, they are dense. Very dense. For that reason, I actually recommend Daimon Conway's Exegesis articles: 2 [perl.com], 3 [perl.com], 4 [perl.com],