- 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
The same tool that wrote it, or a different one?
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.