Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: File Extension Renamingby japhy (Canon) |
on Jul 05, 2006 at 15:59 UTC ( [id://559379]=note: print w/replies, xml ) | Need Help?? |
In your rename ... || die, the || binds too tightly: it binds to the "$dir/$new_name" string, not to the return value of rename(). Either use rename(...) || die or rename ... or die.
In Section
Seekers of Perl Wisdom
|
|