in reply to Conglomerate of arrays with no duplicates

I can't resist the opportunity to post an Abigailish solution:
$" = ','; $\ = "\n"; print for <{@products},@{[map "{@$_}", values %options]}>;

Replies are listed 'Best First'.
Re: Re: Conglomerate of arrays with no duplicates
by saberworks (Curate) on Feb 01, 2004 at 09:35 UTC
    Why does this script break if I change $" back to a space?
      For two reasons. It produces , within {} that must stay that way, and glob("foo bar") produces "foo","bar"; I don't know if there's a way to escape that space. I meant to put in a post-process y/,/ / but forgot.