This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add note about printf("%v",...)
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 7 Feb 2000 18:25:31 +0000 (18:25 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 7 Feb 2000 18:25:31 +0000 (18:25 +0000)
p4raw-id: //depot/perl@5032

pod/perldelta.pod

index 52f148c..33ab171 100644 (file)
@@ -477,6 +477,11 @@ C<require> and C<use> also support such literals:
     require v5.6.0;    # croak if $^V lt v5.6.0
     use v5.6.0;                # same, but croaks at compile-time
 
+C<sprintf> and C<printf> support the Perl-specific format type C<%v>
+to print arbitrary strings as dotted tuples.
+
+    printf "v%v", $^V; # prints current version, such as "v5.5.650"
+
 =head2 Weak references
 
 WARNING: This is an experimental feature.