This explanation does makes sense.
open (FILE, ">/space/data/$filename") || die("Couldn't open file and directory");
Thanks a million for your all support and the final explanation.
While coding, we sometime go blind. We dont see things even when they are in front of our eye's (Might be due to stress or pressure from our pears to finish the job sooner).
Forum's like these, really matters and helps when we really are in need of something.