Difference between scaler and array in perl programmeing
Answers
Answered by
0
Answer:
The biggest difference is that an array is a variable, but all of Perl's data types (scalar, array and hash) can provide a list, which is simply an ordered set of scalars.
A Perl subroutine takes a list as its parameters.
Answered by
9
Heya mate........
A scalar variable contains a single value (for example, one string or one number), an array variable contains an ordered listof values indexed by a positive number, and a hash contains an unordered set ofkey/value pairs indexed by a string (the key) that is associated with acorresponding value.
Hope this will help you......
Similar questions
English,
5 months ago
India Languages,
5 months ago
English,
5 months ago
Computer Science,
11 months ago
English,
1 year ago
English,
1 year ago