in reply to How to call a function on each item after a split?
my @items = split(/\|/, $str); foreach my $item(@items){ ...#whatever } [download]