in reply to surprised by split

Since | is a special character, perhaps you should escape it, ie, split(/\|/, $myline).

Scott