1.

How will you define lexical variables?

Answer»

When a programmer creates a VARIABLE with the help of the 'my' operator and it is PRIVATE in nature, they are called the lexical variables. It stays alive from the spot it got declared till the end, where the block (pair of curly BRACES) FINISHES

Example: 

my $g;  my @k;  my %R;


Discussion

No Comment Found