Is it possible that Template::Provider can export the constants used (PREV, NAME, DATA, LOAD, NEXT, STAT) to index the linked list cache entries? This is useful if you're subclassing Template::Provider and the _refresh() or _store() methods.
A potential patch is attached. Thanks, Chris -- Chris Winters ([EMAIL PROTECTED]) Building enterprise-capable snack solutions since 1988.
--- Provider.pm Fri Jul 27 12:00:25 2001 +++ Provider.pm.new Fri Jul 27 12:01:23 2001 @@ -36,8 +36,8 @@ require 5.004; use strict; -use vars qw( $VERSION $DEBUG $ERROR $STAT_TTL ); -use base qw( Template::Base ); +use vars qw( $VERSION $DEBUG $ERROR $STAT_TTL @EXPORT_OK ); +use base qw( Template::Base Exporter ); use Template::Config; use Template::Constants; use Template::Document; @@ -55,6 +55,7 @@ use constant NEXT => 4; use constant STAT => 5; +@EXPORT_OK = qw( PREV NAME DATA LOAD NEXT STAT ); $DEBUG = 0 unless defined $DEBUG; #========================================================================
