in reply to
problem with split function
@array = split(/\Q$delimiter\E/, $line);
[download]
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
Comment on
Re: problem with split function
Download
Code
In Section
Seekers of Perl Wisdom