in reply to optimization - exists should return a reference
But there's just no way around the duplicate mention of $client. And just as I was typing this code, I forgot the sigil in the second lookup and only by chance caught it a few seconds before submitting, which demonstrates why Once And Only Once is a good idea. Had I made this mistake in actual code, it would have broken silently and possibly left me to scratch my head for a long time.exists $_->{$client} and return $_->{$client} for $export_def->{'..client_default_version'};
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: optimization - exists should return a reference
by Abigail-II (Bishop) on Jan 15, 2003 at 09:32 UTC | |
by Aristotle (Chancellor) on Jan 15, 2003 at 17:29 UTC | |
by BrowserUk (Patriarch) on Jan 15, 2003 at 14:31 UTC |