Nov 5, 2015, 3:19 PM
Post #1 of 4
Printing contents of referenced array
I am new to Perl.. I am trying to understand a Perl script by inserting print statements to understand various variables in the program.
my $variable = subRoutineCall ($a, $b, $c);
When I try to print the above variable, I get an output
As per my understanding the $variable contains a reference to resultant array that is returned by the subRoutine.
I looked online for code on how to dereference this variable to print the actual contents of the resultant array. I found using "\" operator we can dereference the array. However I am still getting the same output
I am not sure of the structure or contents of the array, hence want to print it out.
Am I misunderstanding something? Can someone please assist in printing the contents.