rescale.pl 150 B

1234567
  1. # transform p=<x>,<y> coordinates in display strings
  2. $mx=0.8;
  3. $my=0.6;
  4. while (<>) {
  5. s!p=(\d+),(\d+)!"p=".int($1*$mx).",".int($2*$my)!e;
  6. print;
  7. }