[LON-CAPA-dev] this is ridiculous

Scott Harrison lon-capa-dev@mail.lon-capa.org
Sun, 2 Feb 2003 11:56:07 -0500


Truly amazing (from searchcat.pl).

Why bother with %metacache and $uri inside this subroutine?

sub metadata {
    my ($uri,$what)=@_;
    my %metacache;
    $uri=&declutter($uri);
    my $filename=$uri;
    $uri=~s/\.meta$//;
    $uri='';
    unless ($metacache{$uri.'keys'}) {

I am cleaning up this script.

-- 
Scott Harrison, sharrison@users.sourceforge.net