How do i write the code for a basic perl arrary?



  • 0_1533804659271_perl-array.png

    The diagram shows the parts of the array

    @animals = ("lion", "tiger", "bear", "monkey");
    

    Individual indexes of the array are referenced using numbers starting from zero.

    animal[0] is lion
    animal[1] is tiger, etc.


Log in to reply
 

© Lightnetics 2024