in reply to weired return of array-value

Sounds like a two-dimentional array?
print @$_, $/ foreach (@my_matrix);

Data::Dumper can help you see the format of many structures:
use Data::Dumper; print Dumper(\@matrix);