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

I was just wondering if it were possible to acquire the source of index.pl for studying purposes? I would very much like to see how this wonderful node(let) system has been implemented


humbly yours etc.,
J

Replies are listed 'Best First'.
Re: Source of index.pl
by diotalevi (Canon) on Dec 03, 2003 at 18:28 UTC
    Perlmonks.org is based off of Everything. The modifications are private to the pmdev group. I don't think that you'd be better off by reading this code though. Go read CGI::Application or something - that's done well.
Re: Source of index.pl
by tadman (Prior) on Dec 03, 2003 at 18:43 UTC
    It's not really that dramatic:
    #!/usr/bin/perl -w use strict; use lib '/usr/local/everything/lib'; use Everything::HTML; # >>> Extra Packages # <<< Extra Packages #syntax is "dbname[:user:passwd:host]" mod_perlInit "xxxxx:everything:xxxxxx:";
    Of course, the Everything module contains a lot more than a few lines of code. You can download it from Everywhere (which is currently being moved?) or from SourceForge.
Re: Source of index.pl
by rchiav (Deacon) on Dec 03, 2003 at 18:44 UTC
    I'm not sure what modifications have been made here, but the standard Everything engine index.pl file is pretty boring. It's 4 lines; the shebang line, use strict, use Everything::HTML and the call to load Everything.

    The meat is in the modules, which you can get from http://everydevel.com.

Re: Source of index.pl
by b10m (Vicar) on Dec 03, 2003 at 18:28 UTC
    As far as I know, this is currently not (yet) possible, although I wouldn't mind taking a peek myself. You might want to read the discussion on: Run your own perlmonks!
    --
    B10m