On Fri, 30 Jul 2010 19:06:09 +0200 Leon Timmermans <faw...@gmail.com> wrote:
> On Fri, Jul 30, 2010 at 6:21 PM, > R. Dresens <chrom...@nedlinux.nl> wrote: > > is still an 'Array()'. So I'm really confused about the > > intricate difference between... > > > > my $x = [1, 2, 3] > > > > ...and... > > > > my @y = (1, 2, 3); my $x = \...@y > > The latter should be written as > > my @y = (1, 2, 3); my $x = @y; ...and my @x = (3, 4); my @z = 1, 2, \...@x, 5, 6; ...should be my @x = (3, 4); my @z = 1, 2, $(@x), 5, 6; This does what I expect/want (especially when I `...@x.push(4.5)`). > Yeah, that requires some unlearning of Perl 5 idioms. $x and @Y are > indeed mostly the same, except that @y acts listy and $x not. That's actually my biggest hurdle at this moment: I write Perl 5 code almost every work day. Thanks, Greetings, Raymond.