Google News
logo
Perl - Interview Questions
What are Perl variables?
A variable is a place to store values reserving some memory space. Perl treats the same variables differently based on context.
 
There are three types of Perl variables :
 
Scalars ($) : It stores a single value.
 
Arrays (@) : It stores a list of scalar values.
 
Hashes (%) : It stores associative arrays which use a key value as index instead of numerical indexes
Advertisement