my $CSV_file = "database.txt"; like this my $CSV_file = "hidden/dir/database.txt";