Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Array

A group of related data values grouped together as one value. Below is an example of how an array is defined and called in Perl. As can be seen in this below example our array is "@numbers" and we've grouped the names of numbers together in this array.


my @numbers = ("one", "two", "three", "four", "five");
print "$numbers[0] and $number[1] equals 3";

The above Perl script would first print the first element in this array, which in this case is "one" by using $numbers[0] (0 always being the first number in programming) and then the second element, which is "two" and print to the screen the below text.

one and two equals 3

Also see: Programming definitions

 

Index

Category:
Dictionary

Related Pages:
A - Definitions

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope