in reply to References and arrays

Untested, but this seems like a classic case for map:

@text = map {$_->[0]} @{$w->{links}};

See map

-- Dan

Replies are listed 'Best First'.
Re: Re: References and arrays
by sch (Pilgrim) on Oct 09, 2002 at 08:16 UTC

    You know what - I wish I could vote for this reply twice. For some reason, I think it might finally be the example that's let me get my head around map

    Thanks again

Re: Re: References and arrays
by sch (Pilgrim) on Oct 08, 2002 at 18:14 UTC

    Thanks for that - seems to do the trick