in reply to How do I parse data received from a textarea

If your entries are always seperated by whitespace you can
do this:
my $string = qq~HHH9114 EEE8888 LLL4258 PPP8525~; $string =~ s/\s+/|/g; print "||$string||\n";
That the \s+ is telling it to replace one or more whitespace
characters (\t\n\r etc.), the g tells it to do all occurances.