Perl/Shell Knowledge Sharing
Perl Interview Questions and Answers
Sunday, January 2, 2011
Rename Filename in perl
foreach my $o (glob("??YYF*")) {
($n=$o)=~s/YYF/XXY/;
rename $o,$n;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment