Cheers - L~R$delimiter = '|'; $delimiter = quotemeta $delimiter; @list = split /$delimiter/ , $line;
Update:
Of course this is overkill - you could just escape it with a backslash. It just demonstrates how you would escape all metacharacters if they were not known ahead of time.
In reply to Re: split question
by Limbic~Region
in thread split question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |