From: Dave Mitchell Date: Sat, 3 Dec 2005 15:20:24 +0000 (+0000) Subject: clarify description of vector (v) sprintf format modifier X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=920f3fa97174024507480fe092a95f260f2a21ee;p=p5sagit%2Fp5-mst-13.2.git clarify description of vector (v) sprintf format modifier p4raw-id: //depot/perl@26251 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 1efdefd..0127c82 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5503,12 +5503,13 @@ For example: =item vector flag -The vector flag C, optionally specifying the join string to use. -This flag tells perl to interpret the supplied string as a vector -of integers, one for each character in the string, separated by -a given string (a dot C<.> by default). This can be useful for -displaying ordinal values of characters in arbitrary strings: +This flag tells perl to interpret the supplied string as a vector of +integers, one for each character in the string. Perl applies the format to +each integer in turn, then joins the resulting strings with a separator (a +dot C<.> by default). This can be useful for displaying ordinal values of +characters in arbitrary strings: + printf "%vd", "AB\x{100}"; # prints "65.66.256" printf "version is v%vd\n", $^V; # Perl's version Put an asterisk C<*> before the C to override the string to