This is a discussion on Re: [offtopic] perl newbie frustrated - modperl ; > If anyone could please explain what I missed on the differences between > ( ) array's and [ ] array's, I'd appreciate it. You want instead beginners@perl.org () is an ARRAY [] is a reference to an array. my ...
> If anyone could please explain what I missed on the differences between
> ( ) array's and [ ] array's, I'd appreciate it.
You want instead beginners@perl.org
() is an ARRAY
[] is a reference to an array.
my @a = (1,2,3);
my $b = [1,2,3];
my $r = \@a;
print @a;
print @$b;
print $r;
print @$r;
print \@a;
checkout Data:umper;
print Dumper \@a;
--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."