Anagram in perl

I want to create a perl anagramm program that reads a name (eg andrew) from an externel file (eg names.txt) and prints out the possible word combinations! Do I have to create an array?
Can somebody please help?
andreafpAsked:
Who is Participating?
 
davorgConnect With a Mentor Commented:
You can split a string into an array like this:

my @array = split //, $string;

You can then use the "shuffle" function (from List::Util) to get an anagram.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.