in reply to to create a Back up script the files

Could these warnings have something to do with your problem?
Argument "3-8-2011" isn't numeric in numeric eq (==) at Argument "3-8-2011" isn't numeric in numeric eq (==) at Argument "true" isn't numeric in numeric eq (==) at Argument "false" isn't numeric in numeric eq (==) at
You need to use eq for string comparisons (Equality Operators).

use strict and warnings