in reply to Re^11: How to fetch the value of unix command result
in thread How to fetch the value of unix command result

Use join to combine

$count{$_}++ for map { join '|',( split /\|/ )[2,3] } <$fh>;
poj