All of these are really great questions.I can see your depth of Perl knowledge.
Yes i need to slurp the file I need to get some values from the files without going to the extent of getting data line by line and saving memory.Also I want the directory to be created in the present directory I am working in.I just needed to extract the current file which is $files
that is the name of the file to extract them and run Perl scripts on the data.