[5620] in testers

home help back first fref pref prev next nref lref last post

perl sort of bug

daemon@ATHENA.MIT.EDU (Laura Baldwin)
Sat Jul 5 10:14:26 2003

Message-Id: <200307051414.h65EEOww023565@geskekelud.mit.edu>
To: testers@MIT.EDU
Date: Sat, 05 Jul 2003 10:14:24 -0400
From: Laura Baldwin <boojum@MIT.EDU>


I have some perl scripts which (apparently wrongly) used \% to print a
percent sign.  (This only seems to work if followed by a |, but it
was.)

Anyway, perl in 9.1 and 9.2 behave differently for this:

  #!/usr/athena/bin/perl 
  $a = 1;
  $b = 2;
  $c = 3;
  printf "%4.0d\% | %4.0d\%\n", $a, $b, $c;

will print 1% | 2%  under 9.1, and will print 1% | 3% under 9.2.

Since \% isn't correct, I'm not sure how much of a bug it is to say
"The wrong thing behaves differently now", but it was certainly weird.

-Laura

home help back first fref pref prev next nref lref last post