Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Perl Programming

Ask Larry Wall 633

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.
This discussion has been archived. No new comments can be posted.

Ask Larry Wall

Comments Filter:
  • by Anonymous Coward on Monday August 26, 2002 @12:05PM (#4141478)
    Could you have designed a language that was more obfuscated and harder to read/write then perl? And could you possibly have made it more difficult to install on the system then it currently is.

    --Jaded distribution maintainer
  • Re:Other linguas? (Score:1, Insightful)

    by Anonymous Coward on Monday August 26, 2002 @12:08PM (#4141495)
    Well, perl itself is written in C...
  • by xyzzy-ladder ( 570782 ) on Monday August 26, 2002 @12:23PM (#4141608)
    of making your daughter? She's stunning. Can I date her? I went to New Life Church too, but it was in DC.
  • Re:Perl Beginners (Score:2, Insightful)

    by sinserve ( 455889 ) on Monday August 26, 2002 @12:38PM (#4141726)
    If you are not going to use everyday, don't bother learning it. The P in "Perl"
    stands for practical.

    Perl doesn't have much linguistic inovations of it is own, it is just a reimplementation
    of ages old techniques. The much celebrated syntax is lifted straight up from unix shell
    and it is stream manipulating siblings (sed, awk, et al.) That is where the funny $@% prefixes
    come from (we know @ is straight from Lisp's backquote and array splicing syntax, much used with
    Lisp macros.) The regular expressions are nothing but Lex on steroids, I almost always rewrite
    my production perl code with regexes in C and it is very easy to do this, I don't even write C,
    I just write Lex rules in a lexfile and implement the case handlers in simple C.

    Perl is cool when you are a newbie coder who knows nothing but C/C++/Java, because those languages
    are expensive to "set up". You need alot of support code just to implement the simplest ideas.
    Perl has alot of things built in; high level data structures, memory management, clean string
    manipulation utilities, networking, GUI and more libraries than you can shake a stick at.

    But you know what? Perl is only AWESOME because we -as student programmers- were introduced to
    very low level languages in school, and don't have any ideas there exists extremely powerful
    laguages, with elegant syntaxes to die for.

    If you just want to learn about perl's "innovations", I invite you to learn Smalltalk, Prolog, or
    Lisp. Mostly Lisp.

  • by Anonymous Coward on Monday August 26, 2002 @12:52PM (#4141840)
    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 :)
  • Re:ugh (Score:1, Insightful)

    by Anonymous Coward on Monday August 26, 2002 @12:59PM (#4141877)
    When is the whole "enterprise" thing going to go away? I'm so sick of that marketing e-crap terminology. Let's face it...the number of "enterprise" sites that rely on perl far outnumbers that of java. Put those enterprise java beans in your B2B pipe and smoke it, marketroll.
  • by Tablizer ( 95088 ) on Monday August 26, 2002 @01:05PM (#4141917) Journal
    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)
  • Re:My Question (Score:2, Insightful)

    by mccrew ( 62494 ) on Monday August 26, 2002 @01:07PM (#4141936)
    >Compare that to Java where even if you just want to print "Hello World" you have to understand inheritance, polymorphism and static class methods.

    Ahhhh, Grasshopper, if only that were true.

    I have seen firsthand so-called "professional programmers" using Java to create some of the worst God-awful spagetti code I have seen in my 15+ years of . No matter what the virtues and ideaology behind any language, someone can come along and screw it up beyond recognition.

    Power tools in the hands of amateurs regularly results in the loss of limbs.

    -Steve

  • by Washizu ( 220337 ) <bengarvey@co m c a s t . net> on Monday August 26, 2002 @01:13PM (#4142010) Homepage
    Could you please put in multi-line commenting in the next version of Perl? My # key is getting rubbed off.

  • Re:Why Perl? (Score:2, Insightful)

    by ichimunki ( 194887 ) on Monday August 26, 2002 @01:18PM (#4142072)
    You listed two tasks and two different languages-- so reason #1 to use Perl over those others is so that you don't have to learn a new programming language each time you get a new problem domain. Just a thought... and personally I'd use Ruby over Perl for both of the above because it has all the compactness and power with absolutely none of the line noise.
  • by Marc2k ( 221814 ) on Monday August 26, 2002 @01:18PM (#4142075) Homepage Journal
    *Cough* underrated? Perl can be written simply so that a C programmers(or yes, even Fortran programmers here where I work) can understand what's going on. Not many other langauges have that sort of versatility. Also, if you would *RAFM*, you could quickly pick up its idiosyncracies and write things a lot quicker than in most other languages. And difficult to install? That's funny...it's standard on just about every UNIX distribution, has a Mac port, and has a company (that successfully makes money) that backs it, selling tools and offering free-for-enterprise-solutions interpreters for Windows. Install? I just double-clicked and hit enter a few times.
  • Easy... (Score:4, Insightful)

    by DAldredge ( 2353 ) <SlashdotEmail@GMail.Com> on Monday August 26, 2002 @01:23PM (#4142136) Journal
    A scripting language is one that you don't like.

    A programming language is one that you do like.

  • Re:My Question (Score:3, Insightful)

    by Pulzar ( 81031 ) on Monday August 26, 2002 @01:48PM (#4142382)
    "Doesn't look like you need to know much about inheritance, polymorphism, and static class methods to me." -- says the man as he defines a static class method.

  • Easy... (Score:3, Insightful)

    by DAldredge ( 2353 ) <SlashdotEmail@GMail.Com> on Monday August 26, 2002 @01:58PM (#4142475) Journal
    It is called Faith.

  • Re:PLEASE ANSWER (Score:1, Insightful)

    by swagr ( 244747 ) on Monday August 26, 2002 @02:09PM (#4142591) Homepage
    Everyone knows ford's cars aren't as good as BMW. Ford should start a new ad campaign that says "Why don't ya'll just go buy BMW's, they're better"?

    Yes. Or lie. Or avoid the truth.

    I guess you've answered my question.
    Although many trust and look up to Larry Wall as a visionary, this doesn't mean that he owes us jack shit.

    Well, that seems to be you're response, luckily it's not Larry's.

    From LWN (http://old.lwn.net/2001/features/LarryWall/)

    CL: Once again about Ruby, until a few years ago, I would recommend Perl with no doubt because of its usability, its big enough development and user community base, many good books, etc. Now, I think Ruby and Python can also be good candidates. What should I do?

    LW: Obviously, you should still recommend Perl :-) It really depends on the kind of the programmer you are talking to. Ruby and Python are languages that are designed more with the computer science mind-set, trying to be minimalistic. Some people prefer that kind of language. Perl was designed to work more like a natural language. It's a little more complicated but there are more shortcuts, and once you learned the language, it's more expressive.

    So, it really depends on whether if you would just like to learn a smaller language and then you just fight with it all the time, or, learn a slightly larger language and have more fun. I think Perl is still more fun than the other languages.
  • Re:My Question (Score:3, Insightful)

    by CoughDropAddict ( 40792 ) on Monday August 26, 2002 @03:25PM (#4143224) Homepage
    "Doesn't look like you need to know much about inheritance, polymorphism, and static class methods to me." -- says the man as he defines a static class method.

    Irrelevant. Just because a person copies "public static void main" out of example 1.1 in Learn Java in 24 hours doesn't mean they understand what it means. I would wager that 90% of Perl programmers who use "my" regularly don't have a clue about lexical vs. dynamic scoping, but it doesn't matter because "my" does what they expect.

UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Working...