• my name (unregistered)

    PERL is a Write only Language

  • Hal (unregistered)

    If I had to take a wild arse guess with such little context - pwd = present working directory?

    Generating a random-ish value to create a space for some temp files. A huge code smell for sure but sounds like the whole project is

  • dpm (unregistered)

    799,800 lines to go

  • Hanzito (unregistered)

    Ninetyninethousandht comment.

  • The Dave G (unregistered)

    I'm not sure wtf the wft is. The little, innocuous code-bits, or not using a tool to scan for vulnerabilities.

  • my name is missing (unregistered)

    What requires 800,000 lines of Perl I wonder? It seems more likely to be a WMD than an application.

  • Tinkle (unregistered)

    I found the biggest security vulnerability: 'no one is entirely sure what the production environment is'

  • (nodebb) in reply to my name

    PERL is a Write only Language

    Incorrect. Perl is merely slightly opaque. APL is write-only.

  • (nodebb) in reply to The Dave G

    You don't think that it's a major catastrophe scale WTF to have a production system that includes servers and other resources that nobody knows what they are?

  • Duston (unregistered)

    799,800 lines of code in the file, 799,800 lines of code. What's it about so edit it out, 799,799 lines of code in the file.

  • Zygo (unregistered)

    After years of on-and-off Perl coding, I'm looking at that line of code, and thinking there's probably some way to make that line compile by manipulating the interpreter at runtime...

  • Sole Purpose Of Visit (unregistered)

    From distant memory, I seem to recall that Perl has about five or six different contexts, not merely scalar and list. Then again, Perl being Perl, I may be confused as to what a "context" is, in, er, the context.

    We're probably not supposed to promote commercial products on this site, but in the case of Perl (and PHP) I'm going to do so anyway: Use Komodo. It's damn good at pointing out problems.

    Having said which, I feel Erik's pain. Unless of course he is "Hanzo" Erik, in which case ... karma.

  • Yikes (unregistered)

    It's like one of those home makeover shows .... for a mansion .... or..... a town!

  • Abigail (unregistered)

    $1000001 in Perl is a read-only variable. It's the part of the string which got matched by the 1000001th set of parenthesis of the last successful match. I doubt they have such a regular expression, so they probably meant something else.

  • Worf (unregistered) in reply to Sole Purpose Of Visit

    There was a document on the web about the dangers of mixing scalar and list contexts could result in terrorism.

    Too bad I can't find that link - and attempts at google fail hard - it seems the instant I include "terrorism" Google goes nuts and ignores the fact that I needed "perl" and just returns me lists of terrorism related documentation and thus making that link impossible to find.

  • David (unregistered) in reply to Abigail

    We didn't see the other 799,800 lines yet...

  • (nodebb) in reply to The Dave G

    The same tool that wrote it, or a different one?

  • NotAThingThatHappens (unregistered) in reply to Sole Purpose Of Visit

    <qoute>We're probably not supposed to promote commercial products</qoute>

    It's probably fine as long as you do it almost never, once in a single sentence and the product is relevant

  • (nodebb) in reply to Steve_The_Cynic

    Not only are there servers and resources where nobody knows what they are, they're also written in Perl so the odds of anyone being able to figure out what they are are slim.

    An 800KLOC web application in Perl? I think that's one of the tortures from Dante's Inferno isn't it?

  • Officer Johnny Holzkopf (unregistered)

    Problem found: "the interpreter kept failing to compile" - yes, because the interpreter should interpret, and the compiler should compile. The correct solution, as implied by the implytolator, of course would be to hand the code over to the deleter, which should then delete it. Problem solved.

  • (nodebb)

    There is no interpreter, moron.

  • WhyIsItGlowing? (unregistered) in reply to Steve_The_Cynic

    "You don't think that it's a major catastrophe scale WTF to have a production system that includes servers and other resources that nobody knows what they are?"

    No, this just means it must be coming out of another division's budget, therefore it is a huge success and cannot possibly go wrong.

Leave a comment on “Brillant Perls”

Log In or post as a guest

Replying to comment #:

« Return to Article