yep! That's exactly what I'm trying to do. But I had a little more complicated substitution regex that included the appending date part. What i did was just take out the unless statement from the substitution one ( i put it all together) and just checked unless ($1=~ /2003/) and it worked perfectly.