Subject: | Code in POD not rendering well |
The code in the POD does not render properly because it is not in
"verbatim paragraphs". The 4 lines in the EXAMPLES section show up as
one wrapping line. The enclosed patch improves how the POD is rendered.
Subject: | diff-u.txt |
--- Units.pm.1.3 2008-07-24 20:37:03.000000000 -0400
+++ Units.pm 2012-10-26 15:00:12.000000000 -0400
@@ -25,9 +25,9 @@
=head1 SYNOPSIS
-use Math::Units qw(convert);
+ use Math::Units qw(convert);
-my $out_value = convert($in_value, 'in unit', 'out unit');
+ my $out_value = convert($in_value, 'in unit', 'out unit');
=head1 DESCRIPTION
@@ -76,10 +76,10 @@
=head1 EXAMPLES
-print "5 mm == ", convert(5, 'mm', 'in'), " inches\n";
-print "72 degrees Farenheit == ", convert(72, 'F', 'C'), " degrees Celsius\n";
-print "1 gallon == ", convert(1, 'gallon', 'cm^3'), " cubic centimeters\n";
-print "4500 rpm == ", convert(4500, 'rpm', 'Hz'), " Hertz\n";
+ print "5 mm == ", convert(5, 'mm', 'in'), " inches\n";
+ print "72 degrees Farenheit == ", convert(72, 'F', 'C'), " degrees Celsius\n";
+ print "1 gallon == ", convert(1, 'gallon', 'cm^3'), " cubic centimeters\n";
+ print "4500 rpm == ", convert(4500, 'rpm', 'Hz'), " Hertz\n";
=cut