The sprintf documentation has this example:
printf "version is v%vd\n", $^V;
and it printed 'version is vv5.9.3\n'.
p4raw-id: //depot/perl@26326
q++; /* skip past the rest of the %vd format */
eptr = (const char *) vecstr;
elen = veclen;
+ if (elen && *eptr == 'v') {
+ eptr++;
+ elen--;
+ }
vectorize=FALSE;
goto string;
}
>%+vd< >chr(1)< >+1<
>%#vd< >chr(1)< >1<
>%vd< >"\01\02\03"< >1.2.3<
+>%vd< >v1.2.3< >1.2.3<
+>%vd< >[version::qv("1.2.3")]< >1.2.3<
>%v.3d< >"\01\02\03"< >001.002.003<
>%0v3d< >"\01\02\03"< >001.002.003<
>%-v3d< >"\01\02\03"< >1 .2 .3 <