NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
you must be joking (Score:1)
I'm sorry you have to deal with it. That looks even worse than the PHP I have to maintain at $work.
Re: you must be joking (Score:1)
I swear this is real, actual, in production code. My problem here will be to understand that code, and rewrite it from scratch in standard Perl. The next two months will be fun...
Close the world. txEn eht nepO
Re: you must be joking (Score:1)
Pfoouh. my head still hurts from looking at one line. Must have been some kind of generated code, even writing that would be painful.
Maybe it's worth to try to write some preprocessor to transform the code into something a bit more decent. Also can Perl::Tidy do something? if not, send to the author some tests ;)
cheers --stephan p.s seems to me you'll be cleaning "les écuries d'Augias", but don't use brute forceReply to This
Parent
Re: (Score:1)
I don't think it's generated code. It's just handwritten code with cargo-cult gone wrong and too much copy&paste.
I've tried
Perl::TidyandPPI, but they're not helpful in such case. I've also looked at how I could preprocess this, but didn't find a way, so I'm doing this by hand. I'll post the result soon for the fun of comparison.Close the world. txEn eht nepO