Slashdot Mirror


Ask Larry Wall

About what? Perl is probably a good topic choice. No one knows more about Perl than Larry Wall, right? We'll send 10 of the highest-moderated questions to Larry by email, and post his answers when we get them back. Note: Due to Slashdot's line length restrictions, lines of code over 50 characters long may not display correctly. Please be aware of this if you include code samples in your question.

41 of 616 comments (clear)

  1. Rewind and replay by ObviousGuy · · Score: 4, Interesting

    If you were to have a second chance at designing Perl, what would you have done differently?

    It's clear that Perl is undergoing a huge revision now, but even in the midst of this, you have to refrain from straying too far from the existing userbase. What would you do if you didn't have to satisfy those people?

    --
    I have been pwned because my /. password was too easy to guess.
  2. Perl vs J2EE by Anonymous Coward · · Score: 5, Interesting

    What do you think about the argument that Perl is a good language for small/medium sized websites and Java/J2EE is what should be used for large enterprise websites??

  3. Perl as a "scripting" or a "programming" language by Marx_Mrvelous · · Score: 4, Interesting

    I've been using perl for a very long time, but primarily as a scripting language. I indeed mostly use it for extraction and reporting. With the recent developments in perl, however, there seems to be the trend that perl is able to do much, much more (while retaining compatibility to be "just" a scripting language).

    What do you think about how people are using Perl today? Are you satisfied that most people use it for simple tasks like log parsing? Would you like to see more advanced applications being built with Perl verses a compiled language?

    --

    Moderation: Put your hand inside the puppet head!
  4. Other linguas? by PDHoss · · Score: 5, Interesting

    What language do you use when you're not using Perl? ;) Seriously, are there aspects of other languages you've considered adding to Perl? If so, what languages? What features?

    PDHoss

    --
    ======================================
    Writers get in shape by pumping irony.
  5. What 10 Q's would you ask yourself? by thaigan · · Score: 5, Interesting

    If given the chance, what 10 questions would you ask yourself?

    --

    42
  6. Open source and money by hackstraw · · Score: 4, Interesting
    Larry,

    Thanks for Perl and the excellent Camel Book. I've been using Perl for 7 years now and am very grateful for having such a tool at my disposal.

    Now for the question. Many times people ask the question "Does open source software pay?", and I am under the assumption that it has for you with the profits from the Camel Book and the Perl Resource Kit, etc. So has OSS been profitable for you?

    PS, I miss the Hmm..... and other funny comments while applying patches :)

  7. Line Length by carrier+lost · · Score: 4, Funny

    Due to Slashdot's line length restrictions, lines of code over 50 characters long may not display correctly.

    Isn't this something that can be fixed in Perl?

    MjM

    I only mod up...

  8. Perl Beginners by KoopaTroopa · · Score: 4, Interesting

    I'm a CS student who's recently become very interested in Perl along with other languages. However, I don't really have too much everyday (or even occasional) need to actually USE much Perl. I am big into learning as much as I can about it for its own sake.

    Now, for the question: Given this approach to learning Perl (just for a general working knowledge, maybe light usage,) is it really worth spending a lot of my time learning Perl now, or should I wait for the big Perl 6 revision?

    Thanks :)

    --
    Sharpies don't just sniff themselves.
  9. What do you feel about the future of Perl? by TibbonZero · · Score: 4, Interesting

    What do you feel about the future of Perl? Where is it moving to, and what still has to be done?
    Do you see Perl moving towards ever being a greater language for "programming" as C++ is? Or is it's place pretty well defined and not moving?
    In addition, what do you think about other languages and systems such as the .NET and XML? Do you see them as being possibly sucessful in light of Perl's flexiblity? There are so many languages and standards out there, it's hard to see what will some to the top.

    --
    Tibbon
    tibbon.com
  10. Structured programming and perl by slashnot007 · · Score: 5, Interesting
    The reason I like perl is it is not a structured programming language. In my work I find it is 50% a get the job done parsing language and 25% sequencer of programs and deamons and 25% major ojbect oriented programming effort often a cgi.

    Thus I worry that perl has Python-envy. I've tried to use python several times but always go back to perl. The reason is my daily need for a parser dominates my choice of language and maintains my fluency, since I dont want to have to be fluent in both, perl becomes my language of choice for advanced tasks too, even though python might be better for strcutrued programming.

    So my question is, is perl 6 making make perl a structued language like python? Would it be a good idea if perl did not develop any further for fear of becoming too complicated and thus disorganized. (witness the evolution of java from clean slate to giant mess with intricate redundant libraries half of which are deprecated).

  11. How Object-Oriented is Perl by Pinball+Wizard · · Score: 4, Interesting

    Larry, Perl has been accused of not being object-oriented because it only supports one of The Three Pillars(encapsulation, the other two being inheritance and polymorphism) of Object-Oriented programming.

    In my experience having the programming language handle the complexities of the object type is just as good as having explicit types like int, float, string, etc. But others disagree. And, I'm sure that by creating packages that call other packages, inheritance can be simulated. Others would disagree with this as well.

    Additionally, the people who criticize Perl's object-orientedness claim that Object-Oriented programming is "bolted on" to Perl, and therefore is somehow unnatural compared to a language like Java which is built to be object-oriented from the ground up.

    How would you answer these critics, and how well does Perl in fact support Object-Oriented Programming, in your opinion?

    --

    No, Thursday's out. How about never - is never good for you?

  12. Languages in general by nburtner · · Score: 4, Interesting

    Mr. Wall,
    I know that you are an amateur linguist, since you originally wanted to be a missionary, and I was just wondering what other languages that you know and how they influenced your design of perl. I believe that you mentioned in the Camel that Greek was one of the languages that you drew from, and I was just wondering about the others you used, and why you chose them.

    Thanks!

  13. what next now? by tanveer1979 · · Score: 4, Interesting

    Larry, I am a perl user for quite sometime now, infact in many organizations like us perl is the defacto language for scripting. And I feel Perl has reached a pinnacle. Perl as such will be difficult to improve. Of course better regex and such minor issues can be fixed, but for all that matters I waould call it perfect, so do you plan to branch into something completly differnt, yet on the same philosophy. Perhaps perl with more intution, more power, an altogether differnt language with the same underlying philosophy of perl?

    --
    My Aurora : http://www.youtube.com/watch?v=o91ZsGwJYyg
    FB : https://www.facebook.com/TanveersPhotography
  14. What will you *not* put into Perl 6? by TreyHarris · · Score: 5, Interesting

    What would you say has been the number one requested feature that you will not put into Perl 6, and why not?

  15. perl vs other languages by larry+bagina · · Score: 5, Interesting
    Whenever perl pops up in slashdot, there are plenty of language zealots claiming perl is obsolete and you should really be using php or ruby or python instead.


    What are your thoughts on these other scripting languages? What do you like about them, what do you dislike?

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  16. LOTR by baldass_newbie · · Score: 4, Funny

    In the Camel Book, you mention Tolkien's Lord of the Rings as good background reading for Perl.
    Do you think the Peter Jackson movies are an acceptable alternative? Or do I have to read the books?

    --
    The opposite of progress is congress
  17. Perl Class? by RollyGuy · · Score: 5, Interesting

    At the college level, the programming classes are taught using C,C++,Java, etc. Do you see a place for perl being taught in the classroom? I find that it is often overlooked and dismissed as simply a scripting language.

    --
    Don't pet the burning dog
  18. Why Perl? by wackysootroom · · Score: 4, Interesting

    Just to set the record straight, I use whatever language that I think will be the best tool for the job.

    Larry, my question to you is why should I use PERL over Python for system administration? Why should I use PERL over PHP for web content? What do you think that PERL is best suited for?

  19. Perl and .NET by prostoalex · · Score: 5, Interesting

    What is your opinion of .NET in general and Perl's role in it? Given that .NET supports Perl as one of the languages would you recommend actually using it for any projects? Do you see good future for this tandem?

    1. Re:Perl and .NET by mcc · · Score: 4, Interesting

      I would like to ask the following as kind of a rider on the parent question:

      From looking at perl 6, it really and honestly seems to me like the perl 6 team is trying to position itself as a competitor to .NET, or at least mono. Specifically, Parrot as it's been described in the apocalypses looks like a natural replacement for the .NET CLR, as a more abstract and thus powerful VM that will let objects from different languages interact with each other seamlessly, without being neutered/"managed" the way that CLR languages have to be in order to fit the C# object model.

      Is this an accurate assessment? Was perl 6 meant to be a "better" CLR, and are you people intending to market it as such? If so, do you think that perl 6 could seriously compete with the .NET CLR or the JVM-- given that while those two may be a bit behind in the virtual machine department, they come with really complicated tightly-integrated framework APIs (J2EE, swing, the .net framework..) whereas perl just has a bunch of assorted disorganized modules that do everything?

      Can it be honestly said that perl 6 is a threat to .NET?

  20. The REAL question by unicron · · Score: 4, Funny

    Mr. Wall,

    Your campaign seems to have the momentum of a freight train. Why are you so popular?

    --
    Finally, math books without any of that base 6 crap in them.
  21. Missionaries by technoCon · · Score: 4, Interesting

    WARNING: a Christian topic follows. Close your eyes and stop your ears if that bothers you.

    I hear that Mr. Wall once wanted to be a missionary translator but that a chronic health problem prevented him from going someplace foreign. I further hear that missionary translators use Perl a lot.

    Has he heard any cool stories about how missionaries use Perl?

    Would he ever want to do a short-term missionary gig?

    How is his health nowadays?

  22. From a project managers prospective ... by mustangdavis · · Score: 4, Interesting

    What are your thoughts on the comments made by people that Perl is not designed for projects that require more than one programmer? Many people have stated over and over again that Perl code can not be managed by more than one person ... what are your thoughts on that statement? How would you manage a large Perl project? Do you think Perl should be used for large projects? (or should it be used strictly as a "quick and dirty" programming language?) BTW: I love your work (someone had to say it)

  23. PERL, XP, and test-driven development by phamlen · · Score: 4, Interesting

    One of the big methodologies in vogue at the moment is eXtreme Programming and closely-related Test-driven Development (where you write your tests before writing your code.)

    Considering that XP is a "high-discipline, low formality" methodology, how do you think XP and Perl fit together? How would you go about doing test-driven development in Perl? Is Perl a good language for XP?

    -Peter

  24. Issues left in Perl6? by Jeppe+Salvesen · · Score: 4, Interesting

    Mr. Wall

    Are there any issues in Perl that will not be fixed in Perl6? By an "issue" I mean an aspect of the language that is being widely critized and is admittedly suboptimally implemented, like the current OO implementation.

    --

    Stop the brainwash

  25. Role of Religion? by Anonymous+Cowdog · · Score: 4, Interesting

    Larry,

    I remember reading at some point that you are a
    Christian, and there have been suggestions that
    some of your early missionary impulses (a desire
    to do good, help others) are perhaps part of the
    zeal you have put into Perl over the years.

    Preferring a scientific view, I am not religious,
    and have no desire to be. Perhaps there is a
    God, but if there is, I think he/she has no
    opposable thumbs; in other words, has no power to
    change anything; reality is just playing out
    according to the laws of physics (whatever those
    are).

    Please tell us how in the world a scientific or
    at least technical mind can believe in God,
    and what role religion has played in your
    work on Perl.

    Thanks for doing this interview, and thanks
    for Perl!

  26. Heidi by Keitarou · · Score: 5, Funny

    That was what I wanted to ask, actually. I was wondering if I could have a date with your daughter, Heidi.
    Thanks.

  27. Thanks Larry by wdr1 · · Score: 5, Interesting

    Hi Larry,

    Like many others, I *love* Perl. I use it both professionally and personally. You've not only helped make my career, but also given me a very pleasent past-time. I was wondering what I can do to say thank-you? Can we give you money? Dontate something to someone, etc.?

    When the new Programming Perl came out, I didn't really need anymoe (viva perldoc!), but wanted to make sure I was putting a few bucks in the pockets of those who made Perl great. What else can I do to say thanks?

    -Bill

    --
    SlashSig Karma: Excellent (mostly affected by moderatio
  28. perl 6 niche by maraist · · Score: 5, Interesting

    perl 1-5 have been great UNIX configuration/management languages. This includes small-scale webserver platforms. It's very difficult to find any other language that is as versitile in this respect where it reigns in it's niche. It is the perfect combination of speed, power, simplicity and huffman encoding (especially given the co-UNIX-tools look-and-feel).

    Perl 6 on the other hand, changes this formula around; favoring a more general solution that potentially reduces performance (due to abstractions), and deviates substantially from the UNIX-family-syntax - Namely: c-ish-syntax ( colon, question mark, select, exception-handling, etc), awk/sedish reg-ex's, raw c-libray-wrappers, etc. It was these very similarities that made learning and accepting perl so trivial since learning CIS and UNIX administration was sufficient to master perl in 2 days.

    My question is: does perl 6 have a niche in mind? Or is it spreading itself too thinly; competing more and more against Java/python/C# and thus losing it's identifiable niche?

    --
    -Michael
  29. Favourite Quote? by Vengie · · Score: 5, Interesting

    What is your favourite quote? (*coughsigcough*)

    --
    When in doubt, parenthesize. At the very least it will let some poor schmuck bounce on the % key in vi. (Larry Wall)
  30. How to get people to take Perl seriously by kin_korn_karn · · Score: 4, Interesting

    I'm a perl programmer who uses it daily. The push is on from the C?O types to get rid of Perl, even though a bunch of us here know it and are very proficient and fast with it. The new standard is Java with web services and all that other BS. This sickens me, because a) I'm biased towards Perl and b) I know Java is simply a fad language and the overhead/infrastructure only serves to give do-nothing architect types jobs.

    The high-level technical people in my company don't take Perl seriously. They see it as some kind of super-Awk or an artifact of the early days of the web. Smart people know better, but we're not in charge.

    What do you think it would take to get people to take Perl seriously as a programming language [again]? Is widespread use of Perl a goal of yours, or do you not care?

  31. Ask his opinion on OOP, not language details by Tablizer · · Score: 5, Insightful

    Polymorphism is the key to OOP. Its what makes everything reusable, and melds everything together in a program.

    Most OO fans will say something like "X is the key to OOP". Yet X is always different. X has been "composition", "patterns", "inheritance", "abstraction", "reuse", "encapsulation", "modeling noun interaction", etc. etc. etc.

    I would like to ask Larry what he *feels* about OOP rather than what Perl does with it. If you want to know what OOP features Perl has, then RTFM.

    Please, don't waste questions on stuff that you can find by RTFM.

    (oop.ismad.com)

  32. Re:Dear Larry: Are you crazy? by legLess · · Score: 4, Informative
    Yowza. Blockquothe the Scareduck:
    The regexp changes you're talking about in Apocalypse 5 [perl.com] will make Perl 6 deeply incompatible with existing scripts and practice. ...Something this radical and wrong will hurt Perl 6 adoption and will retard the acceptance of some very nifty features.
    First of all, in case you missed it, one of the explicit design goals of Perl 6 is to run Perl 5 code perfectly and with no changes. If you don't want to use Perl 6 features - don't. End of story.

    This makes your pithy Issawi quote pointless. Larry's not pushing the Perl mule, he's giving riders a choice of a new, different mule that many of them will like better. If you feel pushed - again, keep writing Perl 5.

    Larry's said several times that he's going to break everything that needs to be broken, mercilessly, in the design of Perl 6. Only those to whom this appeals need come along for the ride. I think your hysteria is misplaced.
    --
    This isn't as much "normalization" as it is "don't take so many drugs when you're designing tables."
  33. Perl and Ruby by King+Babar · · Score: 5, Interesting
    In the beginning, I programmed in awk. I lived life one line at a time, but it was good. Then somebody turned me onto perl, and life was much more than good.

    At that time, there was no credible competition to Perl in any of the niches it basically created. These days, there is more competition than I can comfortably list. Indeed, if I were choosing a language like Perl today, I would be very, very tempted to choose Ruby instead, and I am not the only Perl programmer who feels this way. Interestingly, Perl6 is beginning to look and feel a lot more like Ruby. Are there indeed aspects of Ruby that you were deliberately trying to have in Perl6? Are there any aspects of Ruby you are especially wary of?

    --

    Babar

  34. Multi-Line Comments by Washizu · · Score: 4, Insightful

    Could you please put in multi-line commenting in the next version of Perl? My # key is getting rubbed off.

    --
    OddManIn: A Game of guns and game theory.
  35. Easy... by DAldredge · · Score: 4, Insightful

    A scripting language is one that you don't like.

    A programming language is one that you do like.

  36. faster loading times by rsd · · Score: 5, Interesting

    One of the features I really miss in perl is a clean way to pre-compile
    scripts. Both to speedup loading times and to byte-[en]code to program.

    There is perlcc, which really isn't supported as a production tool and doesn't take
    modules into account.

    What do you think about technologies like Zend?

    Is this really a issue for perl? or just a matter of time?

  37. Do you USE Perl? by Lxy · · Score: 4, Interesting

    I was just looking at www.wall.org and the site for your church, of which you are the webmaster. Neither of these sites use any perl whatsoever. Coming from you, I would have expected to see a super cool Perl based calendar and lots of other neat dynamic stuff. What's your reasoning for using no perl on either of these sites?

    --

    There is no reasonable defense against an idiot with an agenda
    :wq
  38. Christianity by Colonel+Panic · · Score: 5, Interesting

    Larry,

    As a fellow Christian (I'm sure that revelation won't get me mod points) I must say that I have really appreciated your 'State of the Onion' speeches over the years. Thanks for showing that Christians can think and that we don't all mindlessly follow a 'televangelist' religion.

    Now for the question:
    Why do you think that the geek/tech community is so anti-Christian and what can we do to help change their negative stereotypes of Christians? Why is it that so many in this community feel that being a 'Thinking Christian' is an oxymoron? People like Knuth and yourself show that Christians can think and make contributions in the technical world.

    I tend to believe that the anti-Christian bias has some justification - meaning that Christians have often not displayed the grace which the Founder displayed and taught us to live in. What is it that Ghandi said when asked about Christianity? "Christianity I like, but it's those Christians that I'm not sure about". I also suspect that the anti-intellectualism of the pop-televangelists that is unfortunately so visible bears much of the blame (often when I come across one of those so-called Christian TV shows I think I'm looking at some kind of religious mutation and when I realize that these folks claim to believe the same things I do, I wince).

  39. Garbage collection by Clipper · · Score: 4, Interesting

    As others have pointed out, Perl's garbage collector does lend itself to the circle of garbage problem because it uses reference counting. Could you comment on the tradeoffs weighed when designing the garbage collector? e.g., Efficiency, time to implement, etc. If you could, would you reimplement it so that it used techniques like the Train Algorithm instead?

    --
    /<en
  40. 403 by Anonymous Coward · · Score: 5, Funny

    I think you'll find your answer here... http://www.wall.org/~heidi/