in reply to problem with split function

@array = split(/\Q$delimiter\E/, $line);
Always wrap scalars which you mean to be interpretted as literal values in regexes with \Q...\E, that way you are safe against the literal containing meta-characters.

------------
:Wq
Not an editor command: Wq