in reply to How to print subarray of AOA?
You just need some brackets to clarify the order of operations -- retrieve the array reference and then dereference it explicitly:
print"@{$aroa[0]}\n";
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|