The LWP idea is bang-on.
My roommate (both of us Computer Science majors) spurned Perl despite my testimonial. But then he wanted to write a script that was right up WWW::Mechanize's alley, munging some web pages and submitting some forms. He was saying "I want to do this program, but it will be really painful and messy." And I said "I can do it in 30 lines of Perl." Of course he didn't believe me.
So, whether it's LWP or WWW::Mechanize, get them thinking about some problem that would be excrutiating in another language, then show the simplicity of the Perl solution.
It took me 22 lines. He uses Perl a lot now. | [reply] |
SOAP::Lite works pretty well as a jaw-dropping demo, too. To accomplish something similar to a 3-line server and 2 line client with Oracle's Application server took a 250MB patch.
| [reply] |
yea i have done that and it is impressive for the most part. Slowly bit by bit perl is going to take over the world... (funny because lispers have been saying that for the longest time) | [reply] |
If you want to turn people towards perl, just show them something that uses LWP, and then how to do the same in C - if you can!!
Right there is actually one place where Perl could improve its reputation: Perl advocates need to stop comparing Perl to C. It made sense 10 years ago, but these days, if you want to be taken seriously, comparisons need to be made with languages that a prospective user might use instead of Perl. Namely, Python, Java, and maybe Ruby.
Nowadays, if you compare Perl to C, it looks like you're trying to avoid the real competition.
| [reply] |