outputs :my $list = "RcvChar checkeof SerialOutputString SerialOutputString SerialOutputString GetFile ChksumByteByByte GetChksum SerialOutputString SerialOutputString"; while ($list =~ s/(\b\w+\b)(.*?)\s+\1\b/$1$2/s) {}; print $list;
RcvChar checkeof SerialOutputString GetFile ChksumByteByByte GetChksum
--
flounder
In reply to Re: Removing duplicates from list
by flounder99
in thread Removing duplicates from list
by Levan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |