> Aditi Gupta wrote:
>> Hello Everybody,
>
> Hello,
>
>> We can get rows of a 2D array as
>>
>> $aref = $AoA[$i];
>> print @$aref; #will print row 'i' as an array
>>
>> How can I print column 'i' as an array using references? Is there any
>> other way which doesn't require two 'for loops' to
Aditi Gupta wrote:
> Hello Everybody,
Hello,
> We can get rows of a 2D array as
>
> $aref = $AoA[$i];
> print @$aref; #will print row 'i' as an array
>
> How can I print column 'i' as an array using references? Is there any
> other way which doesn't require two 'for loops' to print the columns?
Hello Everybody,
We can get rows of a 2D array as
$aref = $AoA[$i];
print @$aref; #will print row 'i' as an array
How can I print column 'i' as an array using references? Is there any
other way which doesn't require two 'for loops' to print the columns?
Thanks in advance,
Aditi
--
To unsubscr