in reply to Fastest way to compare multiple variables?
Update: There seems to be no way to solve this problem without listing each variable by name, since we do not know the names of the variables. So listing them and doing simple equality tests is as maintainable and efficient as other approaches.if (($a == $b) && ($a == $c) && ($a == $d) ... ){ &do_something }
A solution that one writes in baby Perl can be just as valid as any other, in the same way that the lyrics to Louie, Louie were as great as those of Dylan's Mr. Tambourine Man, and the Ramones (R.I.P. Joey) were as great as the Beatles.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Fastest way to compare multiple variables?
by Anonymous Monk on May 15, 2001 at 23:14 UTC | |
by sierrathedog04 (Hermit) on May 15, 2001 at 23:40 UTC | |
by merlyn (Sage) on May 15, 2001 at 23:43 UTC | |
by sierrathedog04 (Hermit) on May 16, 2001 at 00:32 UTC |
In Section
Seekers of Perl Wisdom