If speed is your need, then compare this:
sub buk_s { my @c; $c[ $_ ] = $_ for unpack 'C*', $_[ 0 ]; pack 'C*', grep defined, @c; }
In reply to Re^3: Collapsing a string to unique characters
by BrowserUk
in thread Collapsing a string to unique characters
by dwhite20899
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |