Re: different type of getting an array reference

2004-12-27 Thread John W. Krahn
Octavian Rasnita wrote: Hi all, Hello, Can you please tell me what's the difference between these two types of getting the reference to @a array? my $ref = [ @a ]; This copies the array to an anonymous array and returns a reference to that anonymous array. It is equivalent to: my $ref = do { my

different type of getting an array reference

2004-12-26 Thread Octavian Rasnita
Hi all, Can you please tell me what's the difference between these two types of getting the reference to @a array? my $ref = [ @a ]; and my $ref = [EMAIL PROTECTED]; If I do: use Data::Dumper; print Dumper $ref; Both ways of accesing the @a array with a reference seems to be the same, because D