##
print "What is the name of the access rights .csv? (Full file name)\n";
chomp( my $file = );
## ##
print "Is there a header in this file?\n";
my $header = <>;
if ($header =~ m/^yes|^y]/i){
$header = "1";
}
else {$header = "undef";
}
####
open (CSV, "<", $file);
####
open CSV, '<', $file or die "Cannot open '$file' because: $!";