Author: masak Date: 2009-07-07 00:10:57 +0200 (Tue, 07 Jul 2009) New Revision: 27456
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [S32/Str] added $format defaults to .fmt methods Modified: docs/Perl6/Spec/S32-setting-library/Str.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-07-06 21:58:58 UTC (rev 27455) +++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-07-06 22:10:57 UTC (rev 27456) @@ -513,10 +513,12 @@ =item fmt - our Str multi method fmt( Scalar $scalar: Str $format ) - our Str multi method fmt( List $list: Str $format, Str $separator = ' ' ) - our Str multi method fmt( Hash $hash: Str $format, Str $separator = "\n" ) - our Str multi method fmt( Pair $pair: Str $format ) + our Str multi method fmt( Scalar $scalar: Str $format = '%s' ) + our Str multi method fmt( List $list: Str $format = '%s', + Str $separator = ' ' ) + our Str multi method fmt( Hash $hash: Str $format = "%s\t%s", + Str $separator = "\n" ) + our Str multi method fmt( Pair $pair: Str $format = "%s\t%s" ) A set of wrappers around C<sprintf>. A call to the scalar version C<$o.fmt($format)> returns the result of C<sprintf($format, $o)>. A call to