to this:($size, $item) = split /|/, $row;
($size, $item) = split /\|/, $row;
You're splitting on a regular expression and '|' has special meaning there.
In reply to Re: simple simple split
by skx
in thread simple simple split
by kevind0718
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |