I get "n". When I change the split call to split(/X/,$line) I get what I expect: "|two".my $line = "oneX|twoX|threeX"; my @fields = split(/|/,$line); print "$fields[1]\n";
In reply to difficult to split on "|" by jjohhn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |