in reply to Re^2: Why do I get this error?
in thread Why do I get this error?

> But I have a Array of Arrays there...

$elem is an array ref, you can also call it $a_ref or whatever explains best the content ($a_row for instance)

> How can I use join?

like shown, did you notice the @ in front of @$elem, it dereferences the array ref.

> Also, if you use foreach, doesn't it mean that you lose the order of elements?

Nope! Try it out...

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^4: Why do I get this error?
by Anonymous Monk on May 12, 2014 at 01:02 UTC
    Thank you for your help! Unfortunatelly it doesn't work, it still says the same thing! Actually, this code worked just fine, but I wanted to implement the "use strict" mode and added "my" etc and now I get this stupid error... The printing is done, but the warning remains (as it was before)...