You need to escape the pipe as it is being interpreted by the regexp engine split on null or null. Splitting on null splits between each byte of the string.% ./splitit.pl -c'\|' < flatfile.pipes
--
perl -p -e "s/(?:\w);([st])/'\$1/mg"
In reply to Re: split $c
by belg4mit
in thread split $c
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |