Tuesday, 31 January 2023

Perl Data Structures - Accessing Arrays of Arrays

Method 1:

@array=(["apple","orange"],

               ["Mango","Banana"],

               ["Papaya","Peach"]

);

 

$arrayref = $array[1];

 print ${$arrayref}[1];

Read more »

Labels: