hi, everyone

How to write a perl program  to generate the following combination of 
a letter ABCD

ABCD
ABDC
ACBD
ADBC
ADCB
ACDB

BACD
BADC
BDAC
BCAD
BDCA
BCDA

CABD
CADB
CDBA
CBAD
CBDA
CDAB

DABC
DBAC
DACB
DCAB
DBCA
DCBA

I think it is possible to generate this letter, 
the rule is: ABCD  1*2*3*4=24
if only ABC 1*2*3=6

Thank lots of your help

-- 
May GOD blesses you, and your family
=============================

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to