This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Follow up on elimination of $` $& $' in libraries
authorM.J.T. Guy <mjtg@cus.cam.ac.uk>
Fri, 28 Feb 1997 13:59:42 +0000 (13:59 +0000)
committerChip Salzenberg <chip@atlantic.net>
Tue, 25 Feb 1997 01:12:02 +0000 (13:12 +1200)
Ilya Zakharevich <ilya@math.ohio-state.edu> wrote
> $' $` $& eliminated from all the known *.pm.

Close, but you overlooked the 'use English' in diagnostics.pm.
See additional patch below.

p5p-msgid: <E0w0Sqc-00046E-00@ursa.cus.cam.ac.uk>

lib/diagnostics.pm

index 0aa5b54..26c3147 100644 (file)
@@ -163,7 +163,6 @@ Tom Christiansen F<E<lt>tchrist@mox.perl.comE<gt>>, 25 June 1995.
 =cut
 
 require 5.001;
-use English;
 use Carp;
 
 use Config;
@@ -177,7 +176,7 @@ else {
 $DEBUG ||= 0;
 my $WHOAMI = ref bless [];  # nobody's business, prolly not even mine
 
-$OUTPUT_AUTOFLUSH = 1;
+$| = 1;
 
 local $_;