in reply to difficult to split on "|"

The 'pipe' sign is a meta character in perl's regular expressions, you need to escape it if you mean a literal "|":
my @fields = split(/\|/,$line);

Replies are listed 'Best First'.
Re^2: difficult to split on "|"
by jjohhn (Scribe) on May 14, 2005 at 03:11 UTC
    Thanks. The answer is obvous now that you showed me.