• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • Last Modified:

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?
  • 2
2 Solutions
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.
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.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now