Hi

I've recently seen some old bugs rear their heads long after they were
fixed and the version date thing updated, so I think there are some
ways in which clients can avoid updating.

What about adding something like ($VERSION) = q$Revision$ =~ /(\d+)/;
to all our files so we actually have a changing version number, then
we could do something like the following to get the versions of all
loaded modules and test against a centrally updated file:

foreach my $mod (keys(%INC)){
        next if $mod =~ /^[^A-Z]/;
        $mod =~ s/\.p[ml]$//;
        $mod =~ s/\//::/g;
        my $version;
        eval "\$version = \$${mod}::VERSION;";
        print "module: $mod version: $version\n"
}

-- 
Knut Arne Bjørndal
aka Bob Kåre
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to