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.
Scripting bridges (Score:1)
Reply to This
Re: (Score:2)
Plus Camelbones has an awesome example app [sergeant.org].
Re: (Score:1)
I see you're the author of the awesome example app, heh.
(I don't really even know what Camelbones is, but) I was wondering if you use Algorithm::BinPack [cpan.org] for that. Your kind of application is even mentioned in the synopsis (s/CD/DVD/) of that module.
Re: (Score:2)
Re: (Score:1)
I suspect the answer to Leon's original question is a combination of "nobody wants to do it", "nobody wants it" and "the Perl world is too insular".
Re: (Score:1)
Re: (Score:1)
Re: (Score:1)
Because Perl is resistant to being processed by development tools.
Plain and simple.
This is the same reason that Google goes for Java and Python mainly, because you can write huge toolchains around it.
Perl is impossible to parse.
Re: (Score:1)
Re: (Score:1)
You can’t parse it without executing it, even if it looks that way.
Re: (Score:1)
Re: (Score:1)
You’re wrong.
Re: (Score:1)
Re: (Score:1)
Thanks, Ben. I wanted to link that, but didn’t remember the title and couldn’t think of good search keywords to ferret it out.
Re: (Score:2)
Is it true that a subset of Perl that eliminates string eval and a couple of other features is parseable? What's happened to efforts based on that?
I'm running on low sleep, and there's probably an answer to this, and I should probably know it, but I'd like a refresher for my poor brain. :)
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re: (Score:1)
I think such a subset is conceivable, but it won’t be of much practical interest, as it must necessarily exclude
BEGINas well as assignment to globs, which effectively means nouse.Re: (Score:1)
Re: (Score:1)
You know you are talking to the author of PPI, right?
Re: (Score:1)
Re: (Score:1)
It is NOT a way to parse and manipulate Perl code.
I know you probably didn't mean to say it in those terms, but the distinction between code and document is extremely important in this case.
This is why providing method name tab-complete, probably the most obvious of all editor assistance functions, is incredibly difficult to do in Perl.
Even after PPI came out, it took a long time for people to realise that "syntax parser" was not necesarily go