[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Well, that's not really true.  push and unshift will add things to an
array without knowing the length.  splice and -1 indexing could also do
it.

However, '$length = scalar @array' gives you the number of elements, and
$#array gives you the number - 1.

Does that help?

-- 
michael d. ivey        [McQ] : "A mathematician is a blind man in a
   <ivey at gweezlebur.com>     : dark room looking for a black cat which
<a  rel="nofollow" href="http://gweezlebur.com/~ivey/";>http://gweezlebur.com/~ivey/</a> : isn't there.&quot;
 encrypted email preferred   :                        -- Charles Darwin


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01196" href="msg01196.html">[ale] perl question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="01207" href="msg01207.html">[ale] Converting .VCF files to .ldif</a></strong>
<ul><li><em>From:</em> brandoncolbert at digitalwan.net (Brandon Colbert)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01193" href="msg01193.html">[ale] perl question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01194.html">[ale] Accessing Motorola cellphone thru USB?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01196.html">[ale] perl question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01193.html">[ale] perl question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01196.html">[ale] perl question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01195"><strong>Date</strong></a></li>
<li><a href="threads.html#01195"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>