note
Brovnik
You really shouldn't be worryomg about use of reseources at this level.
<p>
Focus on good style, readability, ease of coding, major
performance issues, and all that other good stuff.
<p>
A decent compiler should optimise this sort of construct down
to almost nothing (at most a single extra test), which will not
be noticeable in the overall performance unless it is in the inside
of a very tight loop.
<p>
Perl already does some interesting tricks, such as removing
<b>if</b> statements from the code and replacing it with <b>and/or</b>,
so trying to second guess what the byte code looks like is a
waste of time.
<p>
The gain you will get in readability and hence reuse,
ability to maintain should outweigh any effect in the code.
<br>--<br><A HREF="/index.pl?node_id=80482&lastnode_id=1072">Brovnik</A>
115423
115660