Add sprintf to String
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / String.pm
index d814c03..8f3579c 100644 (file)
@@ -15,6 +15,7 @@ sub chomp   { CORE::chomp   $_[0] }
 sub chop    { CORE::chop    $_[0] }
 sub reverse { CORE::reverse $_[0] }
 sub length  { CORE::length  $_[0] }
+sub sprintf { CORE::sprintf $_[0], @_[1..$#_] }
 sub lines   { [ CORE::split '\n', $_[0] ] }
 sub words   { [ CORE::split ' ',  $_[0] ] }
 sub index   {