Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Conglomerate of arrays with no duplicates

by ysth (Canon)
on Feb 01, 2004 at 09:04 UTC ( [id://325667]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://325667]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found