Re: Anonymous Reference Question
- From: japhy@xxxxxxxxxxxx (Jeff 'japhy' Pinyan)
- Date: Wed, 28 Sep 2005 14:13:31 -0400 (EDT)
On Sep 28, Dave Adams said:
#!/usr/bin/perl -w use strict; use Data::Dumper; my $grades = {"tom"=> 50, "sally"=> 60, "harry" => 70}; print Dumper($grades) ;
And perl gives me this:
$VAR1 = { 'harry' => 70, 'sally' => 60, 'tom' => 50 };
QUESTION: Does this mean that $grades is an anonymous reference because perl gives is $VAR1?
No, it's just what Data::Dumper outputs when you don't assign a name to the data structure you pass it. See the Data::Dumper docs.
-- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://www.perlmonks.org/ % have long ago been overpaid? http://princeton.pm.org/ % -- Meister Eckhart .
- References:
- Anonymous Reference Question
- From: Dave Adams
- Anonymous Reference Question
- Prev by Date: Anonymous Reference Question
- Next by Date: a little help...
- Previous by thread: Anonymous Reference Question
- Next by thread: a little help...
- Index(es):
Relevant Pages
|