in reply to How can one re-parse(?) a string to fill in variables
One possible solution, since the question is so ambiguous...
@a = split /\s+/, "my dog has fleas"; [download]