use File::Spec; print "File Name?\n"; $ToBeDeleted = ; open(IN, $ToBeDeleted) or die " The file $TheFile .....Missing In Action.\n"; @arr = ; print "Directory where files are located?\n"; $Path = ; $x=File::Spec->catfile("$path","@arr"); unlink $x;