2008/4/9 Jay Savage <[EMAIL PROTECTED]>:
snip
>     my $ref = [EMAIL PROTECTED], [EMAIL PROTECTED];
>
>  creates a scalar as reference to an anonymous array, each of whose
>  elements is an arrayref.
>
>     my @array = \(@array1, @array2);
snip

If you really need a reference then you can simply say

my $ref = [\(@array1, @array2)];

Jenda's point was about how the \() syntax saves you (error prone)
work, not what you do with the resulting list.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

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


Reply via email to