you could always single quote and save yourself the trouble of escaping:
@code = split '|', $id;
Update: I stand corrected. Thanx Juerd.
In reply to Re: split at pipe character
by Chady
in thread split at pipe character
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |