my $path= dirname($ans);#I dont have to use this I know.I am just checking here.