1.

What are the data types we have in perl explain?

Answer»

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.


Discussion

No Comment Found