SPUG: hashes, arrays, map, join
Dean Hudson
dean at ero.com
Mon Mar 19 14:22:38 CST 2001
On Fri, Mar 09, 2001 at 05:20:30PM -0800, Alex Leites wrote:
> What's wrong with:
>
> join ',', map( "$_:$ids{$_}", keys %ids
>
> Do you care about the order?
If you do, just add a sort.
dean.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list