in reply to Perl reference array

Hello teun-arno

Welcome to the monastery! :)

Please try to word out real questions instead of mumbling stuff in comments.

I'm not sure what your problem is, "empty field" in Perl is undef not an empty string and it has to be explicitly inserted.

A regex solution on pseudo-code is doomed to fail and will byte you in form of an ugly, hard to track bug.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!