in reply to Re: How to print subarray of AOA?
in thread How to print subarray of AOA?

There is something wrong!!!. In the example my line:
push(@aroa, [@arr]);

..has been has written as:
push(@aroa, @arr);

The square brackets caused the text to become a link to nowere as you can see. Sorry for the confusion this has coused. I have not thought that I can create an array by push(@aroa, @arr); Maybee you could tell me how to do to write square brackets around an array and beeing able to see them in the final text. "print"@{$aroa[0]}\n";"
Was the answer I was looking for.
Are the other possibilities to write the same thing?

Replies are listed 'Best First'.
Re^2: How to print subarray of AOA?
by moklevat (Priest) on Apr 09, 2006 at 14:08 UTC
    Yes, use <code> tags, even around short pieces of code. It's still code after all.

      And, of course, you can use <c> tags instead of <code> tags, which makes it less of a pain for short pieces of code.

      -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.

Re^2: How to print subarray of AOA?
by ww (Archbishop) on Apr 09, 2006 at 14:47 UTC
    and to generalize on moklevat's CORRECT answer, please read Writeup Formatting Tips for more information on formatting posts, with special attention to the section on "Special characters" and the one below, re html tags.