Comma inside CSV file and PERL split

Yes, I can tell :slight_smile:

Homework (assigned work) is always like this. You are presented with a solution which ~99% of all system admins (in an actual paying job where there is little time to waste) would use in the same situation; but you refuse to accept those solutions because your instructor told you to do it in a certain way in an assignment.

You must disclose homework when posting here before you post.

Screen Shot 2021-09-01 at 2.58.20 PM

So, in the future @nmkl2021, disclose (announce) you are working on homework when you first post your question, or you will be prohibited from posting here again.

Thanks for following our rules.

I dont have access to install the module in the production machine. Dont have rights permission to change the input file as well.

@bendingrodriguez @Neo
Parsing command works out.
code

my $line = q{"a quoted, comma", word1, word2};
my @parsed = parse_line(',', 1, $line);
say for @parsed;

output

"a quoted, comma"
 word1
 word2

code

my @elem = parse_line(",", 1, $_);