Sponsored by Travelzoo
Take Advantage of Ridiculously Low Holiday Airfares view!
travelzoo.com - Flights $52 and up for Thanksgiving, Christmas & New Year. But move on it now.
19 Comments
- Valence, on 10/12/2007, -1/+7Oof. The title of this is potentially misleading, possibly implying that the article is about writing an authentication/authorization system with Perl. However, the article is written to answer this question: How in the world do I send my username and password to a Web site using Perl? A much different animal.
- snoopdoggydog, on 10/12/2007, -1/+5Actually, webapps in perl are actually rather current and cutting edge: http://catalyst.perl.org , http://jifty.org
- tylerni7, on 10/12/2007, -1/+4This is old and lame, and has been reported as such. Perl has been able to do this for some time now without all the modules and stuff if you really wanted.
- scheper, on 10/12/2007, -2/+5Perl has had this ability for, I'm sure, more than a decade.
- theGrue, on 10/12/2007, -1/+4If Perl's not with the times, does PHP have a cool way of logging into a website for me? I've always wondered about that.
- scheper, on 10/12/2007, -0/+2He didn't compare them. He just wondered.
Grue: This might help:
http://php.resourceindex.com/Functions_and_Classes/Clients_and_Servers/HTTP/ - ACoolie, on 10/12/2007, -1/+3Yeah, Perl is great for these types of things =D
Just an idea, but couldn't this be exploited to do something similar to recent Digg problems, where the first 20 some users to digg were all the same? Whereby a user creates an array of usernames and passwords and loops through all of them, executing this script for each, then sending the user to the first user's profile, clicking on digg of the first recent submission link, then logging out? - Metasquares, on 10/12/2007, -1/+2Sorry, this should have been attached to tokachu's post.
@jwyles:
Perl not versatile? Have you ever written a large webapp in Perl? (I have, many times, and it is quite easy and fun to do.) It's one of the most versatile languages I've ever used. I would even say it's *too* versatile sometimes.
I don't know why there's this perception that Perl is an archaic language. If you use PHP, that's about the same thing, just with less modularization. Is it the strange object orientation of the language? There's a module to bring it more in line with languages such as Java (and it'll be changed in Perl 6 anyway). Lack of built-in MVC? There are modules for that too. See what I mean about versatility? It's not like you need to scour the web for Perl modules, either - you have CPAN at your disposal.
So what *is* everyone using today, anyway, since so many people seem to think Perl is an old language now? Ruby on Rails? I've played with it a bit and it's fairly neat for blog-style applications (maybe even something like Digg), but it isn't quite as apt for applications that require significantly more than a simple wrapper around a database. - riczho, on 10/12/2007, -2/+3Wow! Everybody in the comments had Perl capitalized properly until snoopdoggydog/jwles...
http://perldoc.perl.org/perlfaq1.html#What's-the-difference-between-%22perl%22-and-%22Perl%22%3f - tokachu, on 10/12/2007, -1/+2Has it ever occurred to you that the reason why most people won't use Perl is because it's too modularized? You're basically taking Linux dependency hell and porting it to Web applications, and last time I checked it would be a bit difficult (and expensive) for every web site owner to buy their own server and give it root access just to install a few thousand of the latest Perl packages to get their nifty blog software working.
If you want to show off the versatility of Perl, travel ten years back in time when people would be impressed. - pufuwozu, on 10/12/2007, -1/+2PHP isn't designed to have that sort of power.
Perl is designed to be very modular.
Don't compare two languages that aren't similar at all. - Metasquares, on 10/12/2007, -0/+1You don't need root access to install most modules. You can put them anywhere, so long as you tell Perl where to find them (using a variable called @INC).
In the end, it's all about using the right tool for the job. If you discard Perl out of hand because it's old (and it's only 6 or 7 years older than PHP; comparing it to COBOL or Fortran is hardly fair), you are only depriving yourself of a tool. - merlyn, on 10/12/2007, -1/+1Anyone who thinks Perl doesn't scale for large web apps apparently hasn't been to ticketmaster.com, amazon.com, imdb.com, citysearch.com, or match.com recently. Those are all Perl, all the time. Perl is still used for far more of the "useful" web than most people realize, but because it's "old" technology, nobody makes a big deal of it any more.
- WorldGroove, on 10/12/2007, -0/+0@Metasquares
Pixar is using Python.... very very powerful.... very very cool. You can even make a module reachable by Java and C . But, lots of people still use Perl.... Nothing is wrong with Perl. - tempest, on 10/12/2007, -6/+4WoW, fire up the flux capacitor and adjust the time circuits for 1998!
- inactive, on 10/12/2007, -3/+1I agree, it is another case of few diggs, no comments, but people with a good history of home page submissions getting to the top (it was top of front page with no comments at 23 diggs when i first saw it)
I know it's just an algorithm that decides this, but once you know it, you can manipulate it. I am v suspicious looking at who historically diggs pages for this user that this article is already on the front page. - inactive, on 10/12/2007, -7/+2snoopdoggydog, get real, there are very few instances where perl has been scalable and versitle enough to handle large scale web applications
- tokachu, on 10/12/2007, -7/+2Wow. Let's all travel back to the 20th century and write our Web apps in Perl!
Flagged as old news. - Crazen, on 10/12/2007, -7/+1Sorry CPAN is the garbage pail of the '80s .
Perl is a poor choice and reflects on the "engineers" (using the term loosely, because often times they're nothing more more than system administrators view everything as a nail for their hammer)
Perl is great for parsing a quick log, and not intending to torture somebody by keeping the script. Anybody who uses a language that has such a pathetic excuse for "modularity", the weakest typing of all languages, and the flexibility to express the same statement in hundreds of ways should seriously get educated about the alternatives. These dinosaurs are in the same class of people that won't give up LISP, ADA, Fortran, COBOL.
What is Digg?