InterviewSolution
Saved Bookmarks
| 1. |
How will you define arrays in Perl? |
|
Answer» Arrays in Perl contain an ordered list of scalar VALUES. It has a PRECEDING at (@) sign. For accessing a single element from within the Perl array, developers use the dollar ($) sign. The SYNTAX for DECLARING arrays in Perl is: @array_Name = (1stElement, 2ndElement, 3rdElement.... nthElement); |
|