All pastes #634657 Raw Edit

Untitled

public text v1 · immutable
#634657 ·published 2007-07-26 15:58 UTC
rendered paste body
#!/usr/bin/perl -w

use strict;

my $file=shift;

open(FILE,$file) or die("Damn I cant open this thing\n\n$!");
#open(NEWF,">fixed_$file") or die("Damn I cant open this thing\n\n$!");
while(<FILE>) {
  #print $_."\n";
  if($_ =~ /^1\|\d{3}(\+)$/) {
    s/$1/XXXXXXX/;
    print $_."\n";
  }
}