This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlguts: Update info about e.g. UVuf
authorKarl Williamson <khw@cpan.org>
Thu, 24 Oct 2019 15:56:15 +0000 (09:56 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 24 Oct 2019 16:06:13 +0000 (10:06 -0600)
pod/perlguts.pod

index f70d641..f74a219 100644 (file)
@@ -2705,9 +2705,11 @@ following macros for portability
 These will take care of 64-bit integers and long doubles.
 For example:
 
-        printf("IV is %"IVdf"\n", iv);
+        printf("IV is %" IVdf "\n", iv);
 
-The IVdf will expand to whatever is the correct format for the IVs.
+The C<IVdf> will expand to whatever is the correct format for the IVs.
+Note that the spaces are required around the format in case the code is
+compiled with C++, to maintain compliance with its standard.
 
 Note that there are different "long doubles": Perl will use
 whatever the compiler has.