in reply to using split

The pipe character is special in a regexp, so you need to escape it:

@cols = split(/\|/, $line);

Replies are listed 'Best First'.
Re^2: using split
by maurkb (Novice) on Jun 04, 2007 at 16:29 UTC
    Ah, I should have realized that. Thanks for the help!