On output try to downgrade to bytes, croak if impossible,
[p5sagit/p5-mst-13.2.git] / pod / perl5004delta.pod
index 2ade235..8cec3ab 100644 (file)
@@ -810,7 +810,7 @@ builtin operations.
 
 When C<use locale> is in effect, the current LC_CTYPE locale is used
 for regular expressions and case mapping; LC_COLLATE for string
-ordering; and LC_NUMERIC for numeric formating in printf and sprintf
+ordering; and LC_NUMERIC for numeric formatting in printf and sprintf
 (but B<not> in print).  LC_NUMERIC is always used in write, since
 lexical scoping of formats is problematic at best.
 
@@ -1489,7 +1489,7 @@ subroutine, and outside that is another subroutine; and the anonymous
 (innermost) subroutine is referencing a lexical variable defined in
 the outermost subroutine.  For example:
 
-   sub outermost { my $x; sub middle { sub { $x } } }
+   sub outermost { my $a; sub middle { sub { $a } } }
 
 If the anonymous subroutine is called or referenced (directly or
 indirectly) from the outermost subroutine, it will share the variable