SPUG: hashes, arrays, map, join

Dean Hudson dean at ero.com
Mon Mar 19 15:15:30 CST 2001


Not sure where this came from, it's a bit old eh?

On Mon, Mar 19, 2001 at 12:22:38PM -0800, Dean Hudson wrote:
> 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/
> 
> 

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