in reply to Re^2: Logic Help - Output to csv
in thread Logic Help - Output to csv

open my $fh, "<:encoding(utf8)", "output.csv" or die "output.csv: $!";

You have called your file output.csv but have opened it for reading. That's contradictory.

I’m getting errors about print usage

Why keep them a secret? In general, always supply the full, exact text of any error message you have.