when using map to remove that it gets even slower than mine. What's going on?
You are starting the regex engine 210 times.
If you don't want the spaces, don't put them in to start with. Rather than "@$_" use join'',@$_ or pack 'A*', @$_, or set $"=undef.
In reply to Re^5: list of four digit lock combinations without repeated digits
by BrowserUk
in thread list of four digit lock combinations without repeated digits
by Lotus1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |