# Using perl code

**URL:** <https://forum.kirupa.com/t/using-perl-code/294746>\
**Category:** Uncategorized\
**Created:** [August 19, 2009, 10:57am UTC](https://forum.kirupa.com/t/using-perl-code/294746 "2009-08-19T10:57:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DemonixX](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@DemonixX](https://forum.kirupa.com/u/DemonixX)\
**Post date:** [August 19, 2009, 10:57am UTC](https://forum.kirupa.com/t/using-perl-code/294746/1 "2009-08-19T10:57:27Z")

</div>

How would one go about finding the greatest number in an array of numbers using loops and if statements? For example, if you had an array like this:

(4, 8, 3, 19, 6, 11)
