in reply to How can I fix the problem in using the Algorithm::Permute module?
#!/usr/bin/perl -l use strict; use warnings; use Algorithm::Permute; my(@arr) = qw/A B C/; my $p = new Algorithm::Permute([@arr], 2); while (my(@res) = $p->next) { do { print join(", ", @res); }; } exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I fix the problem in using the Algorithm::Permute module?
by supriyoch_2008 (Monk) on Feb 27, 2013 at 09:02 UTC |