I had a question about counting the number of occurences of '|' in an input row. I am having to hardcode this symbol in the code in order for it to work properly. When I tried to pass this symbol in a variable, it didnt work. Can you please help me out with this? The code is below. The statement in comment is what I used previously.
use Fcntl; #The Module
print "delim is $de";
#my $count = ($inp_row =~ tr/|//);
my $count = ($inp_row =~ tr/$de//);
print "count is $count\n";
This is probably elementary stuff for u guys out there... sorry !!