Sunday, January 2, 2011

Rename Filename in perl

foreach my $o (glob("??YYF*")) {
  ($n=$o)=~s/YYF/XXY/;
  rename $o,$n;
}

No comments: