- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
PERL is a Write only Language
Admin
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
Admin
799,800 lines to go
Admin
Ninetyninethousandht comment.
Admin
I'm not sure wtf the wft is. The little, innocuous code-bits, or not using a tool to scan for vulnerabilities.
Admin
What requires 800,000 lines of Perl I wonder? It seems more likely to be a WMD than an application.
Admin
I found the biggest security vulnerability: 'no one is entirely sure what the production environment is'
Admin
Incorrect. Perl is merely slightly opaque. APL is write-only.
Admin
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?
Admin
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.
Admin
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...
Admin
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.
Admin
It's like one of those home makeover shows .... for a mansion .... or..... a town!
Admin
$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.Admin
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.
Admin
We didn't see the other 799,800 lines yet...
Admin
The same tool that wrote it, or a different one?
Admin
<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
Admin
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?
Admin
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.
Admin
There is no interpreter, moron.
Admin
"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.