What are the data types we have in perl explain?
There are 3 sorts of data types
- Scalar :- Scalars could be a string, a number a simple variable or a reference. A dollar sign ($) is the scalar precedent.
- Arrays :- It’s an ordered list of scalars, which is accessible by numeric index as it is an index, so it's supposed to start with zero (0). @ is the preceded sign for arrays.
- Hashes :- Hashes are unordered sets of key or value that would be accessible by using the key as subscripts. A percentile (%) sign is the precedent.
Suggest An Answer
No suggestions Available!