- Timestamp:
- 10/07/08 15:48:46 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Method-Cached/trunk/lib/Method/Cached/KeyRegularizer.pm
r20638 r20895 12 12 my $_encoder; 13 13 14 # 'This regularizer was not supported or it did not operate normally :' .15 # " $regularizer - $@";16 17 14 sub regularize { 18 my ($class, $ regularizer, $method_name, @args) = @_;19 ref $ regularizer && return $regularizer->(@args);15 my ($class, $key_rule, $method_name, @args) = @_; 16 ref $key_rule && return $key_rule->(@args); 20 17 { 21 18 no strict 'refs'; 22 $ regularizer||= 'LIST';23 return $method_name . &{$ regularizer}(@args);19 $key_rule ||= 'LIST'; 20 return $method_name . &{$key_rule}(@args); 24 21 } 25 22 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)