Computer Science, asked by hindilearn2319, 11 months ago

Difference between scaler and array in perl programmeing

Answers

Answered by Anonymous
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 Anonymous
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