in reply to Dereferencing and context?

Thanks very much for these replies. As I wanted a string, I will use:

my $string = join '', map @$_, @AoA;

dave

Replies are listed 'Best First'.
Re: Re: Dereferencing and context?
by graff (Chancellor) on Feb 09, 2004 at 00:41 UTC
    or equivalently:
    my $string = join '', @$_ for @AoA;
    my $string = ''; $string .= join '', @$_ for @AoA;
    update: it has to be ".=", not just "=", with $string scoped/declared outside the for loop, in order to get all the elements. (thanks to Zaxo for pointing out the mistake)