Changeset 605

Show
Ignore:
Timestamp:
07/17/06 18:56:00 (2 years ago)
Author:
bchoate
Message:

Only use Digest::MD5 when needed. BugId: 32483

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mt3.32/extlib/HTML/Template.pm

    r2 r605  
    898898use Carp; # generate better errors with more context 
    899899use File::Spec; # generate paths that work on all platforms 
    900 use Digest::MD5 qw(md5_hex); # generate cache keys 
     900## Removing 'use' to allow module to work with basic 5.6.x install 
     901## use Digest::MD5 qw(md5_hex); # generate cache keys 
    901902 
    902903# define accessor constants used to improve readability of array 
     
    13201321 
    13211322    # compute the md5 and return it 
    1322     return md5_hex(@key); 
     1323    require Digest::MD5; 
     1324    return Digest::MD5::md5_hex(@key); 
    13231325} 
    13241326