in reply to Re^2: DDJ Test for Perl
in thread DDJ Test for Perl

I think that by "each" you have to assume array elements

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re^4: DDJ Test for Perl
by Argel (Prior) on Aug 27, 2007 at 19:36 UTC
    Paraphrasing, there are two possible questions being asked:

    Given an array whose elements do not have any line feeds (or carriage returns, etc.):

    1. How do you print the entire array all on one line?
    2. How do you print each element of the array on a separate line?

    Based on the wording I think the question is actually asking the first question though the author thinks he is asking the second one.