in reply to Re: Re: Back to Remedial Perl for Me: map{} function
in thread Back to Remedial Perl for Me: map{} function
That's just fine as it is. No need for a map. In fact, a map would be difficult here, unless we presume %set is already empty before we get here.if ($access) { foreach (@{$access}) { $set{$_->[0]} = $_->[1]; } }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Back to Remedial Perl for Me: map{} function
by mikfire (Deacon) on Dec 15, 2000 at 20:39 UTC |