In fact, this is what connecting to http://perlmonks.org/index.pl got me:
Now, I'm guessing the server had a bit of a misconfiguration, but it was amusing, since there was a thread about something like this yesterday, I think.#!/usr/bin/perl use strict; use lib "/home/monkads/0.8mods"; use vars qw( @updatedModules ); BEGIN { # When this mod_perl process starts, see if we inheritted old versio +ns # of key modules from our parent which hasn't been restarted recentl +y: my %ver= ( "Everything::HTML" => 1.011, ); for my $mod ( keys %ver ) { no strict; if( ${$mod."::VERSION"} < $ver{$mod} ) { push @updatedModules, $mod; $mod =~ s.::./.g; delete $INC{"$mod.pm"}; require "$mod.pm"; # Not really required here. } } } use Everything::HTML; mod_perlInit "perlmonk_ebase"; if( @updatedModules ) { print "\n<!-- updated modules this load($$): @updatedModules -->\n"; @updatedModules= (); }
BTW, here's my patch to improve the code:
:)s/inheritted/inherited/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Odd perlmonks page...
by Aristotle (Chancellor) on Jun 21, 2002 at 19:01 UTC |