Saturday, 16 November 2019

Anonymous variables in Perl?


A variable which is not having name is called anonymous variables.it returns a reference to a new variable.

Method 1:


$newvariable = [1,2,3];
print $$newvariable[0];

or

print $newvariable->[0];

or

print @$newvariable


Read more »

Labels: , ,