in reply to var comparison
Your question is "simple" but also complex.
My question to your question is: why?
Shorter code doesn't mean more efficient code.
Your first version is very clear and it will run quickly.
String compare is a very performant operation.
I guess that there is something about this question that you haven't told us about?
The first version will normally execute faster and it is more clear. What is the problem?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: var comparison
by nemesisgus (Acolyte) on Sep 07, 2012 at 16:37 UTC | |
by Marshall (Canon) on Sep 09, 2012 at 19:14 UTC | |
by Anonymous Monk on Sep 08, 2012 at 08:57 UTC | |
by nemesisgus (Acolyte) on Sep 08, 2012 at 18:32 UTC | |
by LanX (Saint) on Sep 08, 2012 at 18:42 UTC | |
by nemesisgus (Acolyte) on Sep 09, 2012 at 02:03 UTC | |
|
In Section
Seekers of Perl Wisdom