Use ($size, $item) = split /\|/, $row;. split's first parameter is a regex and | is a regex metacharacter and must be escaped.
In reply to Re: simple simple split
by BrowserUk
in thread simple simple split
by kevind0718
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |