in reply to Re^2: Combinations of lists, etc
in thread Combinations of lists to a hash

Something like    s/[][\\?*{},]/\\$&/g might do. (Untested)

But in the case that I'd worry about such input I'd rather write a loop multiplying arrays.

That's easier to test. :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice