http://www.perlmonks.org?node_id=43152


in reply to How can one re-parse(?) a string to fill in variables

How can one phrase a question so as to make it answerable? {grin}

One possible solution, since the question is so ambiguous...

@a = split /\s+/, "my dog has fleas";