You should add
$! to the error message (since "Holy moly" doesn't really tell you what went wrong). But it looks like maybe move() is trying to
delete the file while it is still being written to open the file while it is being executed (updated due to
tye).