in reply to selective join
Are you really sure you have an array? It looks to me like what you have is a hash disguised as an array. That is,
If that's the case, and if the key structure is similar across multiple such records, your code would be significantly clearer if you write something likemy %record = ( Currency => 'USD', Asset => 'Equity', Country => 'USA' );
(This assumes that your readers understand hash slices.)my $desc = join '_', @record{qw(Current Asset Country)};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: selective join
by shenme (Priest) on Sep 24, 2003 at 17:17 UTC |