in reply to Re^3: Mass file renaming
in thread Mass file renaming
You're right, I didn't, but I already have the following code which does what you say, so I do know that the vars going in to the rename are good:
print qq{Attempting to rename $oldname to $newname\n};
$success=rename $oldname, $newname;
if ($success){print "Changed $oldname to $newname\n"}
else {print "Failed to rename $oldname to $newname $!\n";exit};
so I do actually know what's in there and its right enough - eg renaming Greenberfield.csv to 573427RSSt.csv
Thanks again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Mass file renaming
by Aristotle (Chancellor) on Nov 07, 2005 at 16:15 UTC | |
|
Re^5: Mass file renaming
by polettix (Vicar) on Nov 07, 2005 at 16:17 UTC | |
by interstellar (Initiate) on Nov 07, 2005 at 17:11 UTC |