Permalink
Browse files

tweak how the ->flog({...}) code works

  • Loading branch information...
1 parent d06beb9 commit e96573b6e3ea4c3339e67fe2acb31aade85d1e19 @rjbs committed Mar 26, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 Changes
  2. +1 −1 lib/String/Flogger.pm
View
@@ -1,6 +1,8 @@
Revision history for String-Flogger
{{$NEXT}}
+ make ->flog({...}) act like ->flog([ '%s', {...} ])
+ (thanks, Randy Stauner)
1.101241 2011-01-13 12:31:38 America/New_York
add format_string method for subclassing
View
@@ -98,7 +98,7 @@ sub flog {
return $class->format_string($fmt, $class->_encrefs(\@data));
}
- return ( $class->_encrefs([ $input ]) )[0];
+ return $class->format_string('%s', $class->_encrefs([$input]));
}
sub format_string {

0 comments on commit e96573b

Please sign in to comment.