I second that - Damnx2;
I think it's worth mentioning the magic of CPAN. I am told that CPAN
can even cure cancer if you know what to search for.
perl -le 'use Algorithm::Permute; my @array =
(1..5);Algorithm::Permute::permute { print @array } @array;'
Sorry, my golf skills aren't refined,
On Wed, 2005-05-11 at 15:24, Aaron Sherman wrote:
This smells like homework, but *shrug*
Then my mailer decided to play the role of the proverbial dog and eat
said homework ;-) If it does so again, I'll just leave well-enough
alone.
On Wed, 2005-05-11 at 14:59, John Tsangaris wrote:
I was
On 5/11/05, John Tsangaris [EMAIL PROTECTED] wrote:
I was asked to provide the 73 occurrence of a sequence of numbers, with
the numbers 12345. Each number can be used only once, and there are a
possible 120 combinations.
I was called by a client to figure this out for them, since one of
On Wed, 2005-05-11 at 13:11 -0700, Ben Tilly wrote:
Do I smell golf?
perl -le 'map/(.).*\1/||print,glob{1,2,3,4,5}x5'
Nice!
I was just playing with a map version trying to see how to shorten my
regex.
perl -e 'map {print$_,\nif/[1-5]{5}/! /([1-5]).*\1/} (12345..54321)'
--
Sean Quinlan