in reply to mkdir die

try
mkdir $DIR_LOCATION, 0777 or die "sigh";
Your original code was being parsed as:
mkdir $DIR_LOCATION, (0777 || die "sigh");
Update: I got pulled into a meeting before I could elaborate, but others have now explained it nicely.

-Blake