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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regex - counting number of '|'
by ikegami (Patriarch) on Mar 18, 2008 at 07:54 UTC | |
by perl_junkie (Acolyte) on Mar 18, 2008 at 17:13 UTC |
In Section
Seekers of Perl Wisdom