in reply to Regex - counting number of '|'
this one works for me:
Mickey
HTH,use strict; my $inp_row = "per|l|mo|nks|ro|ck|s"; print $inp_row =~ tr/\|/\|/, "\n";
Mickey
In Section
Seekers of Perl Wisdom