http://www.perlmonks.org?node_id=222132


in reply to Re: Re: Re: Hash references and illegal octal digits
in thread Hash references and illegal octal digits

Just ensure that there is something after the comma... even if it is a space.
If you have no control over the data then perhaps try something like this:
my %hash = map { s/,\n/, \n/; chomp; split /,/ } @array;