[kw-pm] neat permutations trick..

Daniel R. Allen da at coder.com
Thu Feb 19 05:53:42 CST 2004


Sure.  Say you have two sets of variables (a,b,c) and (1,2,3).  What's the
simplest way to expand that into all permutations in perl?...

--
http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da at coder.com

On Thu, 19 Feb 2004, Andrew Kohlsmith wrote:

> > When I tried this in the meeting, I could've sworn I'd tried the same
> > parameters, but anyway, both of these work; they are un-documented
> > features of perl's filename expansions, that don't actually require any
> > files to match, but return a valid array.  Courtesy toronto.pm:
>
> [ snipped ]
>
> Could we have that again please, perhaps in English?  I'm having trouble
> seeing the utility.
>
> Regards,
> Andrew
> _______________________________________________
> kw-pm mailing list
> kw-pm at mail.pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>








More information about the kw-pm mailing list