Don't ask to ask, just ask | |
PerlMonks |
Re^7: list of four digit lock combinations without repeated digitsby BrowserUk (Patriarch) |
on Jun 22, 2018 at 06:12 UTC ( [id://1217160]=note: print w/replies, xml ) | Need Help?? |
push @x, pack "A*", qq[@$_] while $_=$i->next; That would probably match if not beat join, if you weren't stringifying the array twice. Ie. Use push @x, pack "(A*)*", @$_ while $_=$i->next; Of course, if you want to put all the sequences as strings into an array, this is easier and probably quicker;
And if all you want to do is print the count, then:
BTW, that is one seriously quick machine you're running. What is it? (6x faster than my (admittedly ancient) box. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.
Suck that fhit
In Section
Seekers of Perl Wisdom
|
|