hi all,
I have a a 6-d array which is populated as follows in a loop:
push(@ReportData, $Type, $Year, $Link, $ReportNo, $Authors,$Description);
I then want to access all the $ReportNo elements in a for each loop like so:
foreach $x (@ReportData)
{
print "$x";
}
However this prints out the enitre contents of the array. how do i program it to only print out the $reportNo elements of the array?
any help is muchly appreicated
thanks
I have a a 6-d array which is populated as follows in a loop:
push(@ReportData, $Type, $Year, $Link, $ReportNo, $Authors,$Description);
I then want to access all the $ReportNo elements in a for each loop like so:
foreach $x (@ReportData)
{
print "$x";
}
However this prints out the enitre contents of the array. how do i program it to only print out the $reportNo elements of the array?
any help is muchly appreicated
thanks