Thanks John, this helps get me in the right direction of what I'm trying to accomplish :)

Mickalo

John W. Krahn wrote:
Mike Blezien wrote:

Hello,


Hello,


what is the most effecient way to combine multiple array refs into one
array ref, IE:

my $arrayrefA = ['1',2','3'];
my $arrayrefB = ['4','5','6'];
my $arrayrefC = ['7','8','9'];

my $allarrayref = (Combine $arrayrefA $arrayrefB $arrayrefC)


So you just want to combine the contents of the anonymous arrays?

my $allarrayref = [ @$arrayrefA, @$arrayrefB, @$arrayrefC ];


John


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to