From 35251a48c41b394fe9017bdad1b04824fd340197 Mon Sep 17 00:00:00 2001 From: drbaggy Date: Thu, 14 Oct 2021 05:35:44 +0100 Subject: use slice for both swaps --- challenge-134/james-smith/perl/ch-1.pl | 3 --- 1 file changed, 3 deletions(-) diff --git a/challenge-134/james-smith/perl/ch-1.pl b/challenge-134/james-smith/perl/ch-1.pl index 665acde010..fd268b70a0 100644 --- a/challenge-134/james-smith/perl/ch-1.pl +++ b/challenge-134/james-smith/perl/ch-1.pl @@ -33,8 +33,5 @@ sub next_perm { return 1; ## Return true to say can continue... } - say @s while next_perm && $count--; - - -- cgit