[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [offtopic] perl newbie frustrated


If anyone could please explain what I missed on the differences between ( ) array's and [ ] array's, I'd appreciate it.
You want instead suppressed

() is an ARRAY
[] is a reference to an array.

my @a = (1,2,3);
my $b = [1,2,3];
my $r = suppressed;

print @a;
print @$b;
print $r;
print @$r;
print suppressed;

checkout Data::Dumper;

print Dumper suppressed;




--
------------------------------------------------------------------------
Philip M. Gollucci (suppressed) 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..."


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.