Thank you, tybalt89. Your code worked in terms of generating the expected output.
Could you please explain in detail the following 2 lines from your code? Thank you!
my ($cluster, $member) = split; print $cluster eq $member ? "\n" x ($. > 1) : ', ', $member;
In reply to Re^2: Processing while reading in input
by onlyIDleft
in thread Processing while reading in input
by onlyIDleft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |