Perl language structure: Difference between revisions

Content deleted Content added
m Data types: This would better go here.
m Formatted code in text
Line 153:
</source>
 
Individual elements of a list are accessed by providing a numerical index in square brackets. The scalar sigil must be used. Sublists (array slices) can also be specified, using a range or list of numeric indices in brackets. The array sigil is used in this case. For example, <code>$month[3]</code> is <code>"April"</code> (the first element in an array has an index value of 0), and <code>@month[4..6]</code> is <code>("May", "June", "July")</code>.
 
===Hash values===