hush04 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Is Perl a good language to use to create online forums

Replies are listed 'Best First'.
Re: Is Perl a good language to use to create online forums
by mpolo (Chaplain) on Jun 08, 2001 at 19:43 UTC
    This would be a "classic" Perl application. There are a lot of scripts floating around out there of this type. However, not all of them are built with an eye toward security. Some points to look for in a script (or to include in your own) are the -T flag on the line (called shebang) that invokes Perl at the beginning: #!/usr/bin/perl -wT The T invokes "taint" mode, which prevents you from using user-supplied values in a dangerous way without first "purifying" them.

    The w, which I added as well, turns on extra warnings from the compiler, which will facilitate debugging. (On a finished program, this flag would be less important.)

    Any program that's going to be used in a web (CGI) environment ought to use the CGI module: use CGI;. This module has been written to take care of major security issues, and is constantly being updated to protect against new exploits.

    Finally, it is extremely helpful to add use strict; at the top of your program. This enforces the use of good programming practice (within limits).

    The Web Techniques columns by our own merlyn should give you more ideas.

Re: Is Perl a good language to use to create online forums
by marcink (Monk) on Jun 08, 2001 at 19:38 UTC
    Considering that the Everything machine (the thing that runs perlmonks.org) is being developed in Perl, i'd say it is ;-)

    This is, in fact, one of the places where Perl shines -- it's mainly string/file mangling, database connectivity, interfacing to other systems.

    You might take a look at other websites powered by perl: http://kuro5hin.org/ (Scoop), http://slashdot.org/ (slash).

    -mk
Re: Is Perl a good language to use to create online forums
by larsen (Parson) on Jun 08, 2001 at 19:44 UTC
    I've downvoted this node because:
    • You're using two nodes to ask two questions that could be easily unified
    • I'm not naturally diffident, but your questions have the structure of a test or of a homework
    • Yes, Perl could be a great choice to develop online forums. If this is your intention, tell us about your projects and you'll find a lot of monks that would be glad to help you. But don't use Perlmonks this way: it doesn't add value to this community and will lead you to a lot of -- :)

    see you