In article <[EMAIL PROTECTED]>, Kevin Old
wrote:
[...]
> my %entry;
> 
>     $entry{"genre"} = "Rock";
>     $entry{"artist"} = "3 Doors Down";
>     $entry{"album"} = "Away from the Sun";
>     $entry{"disc"} = "Away from the Sun";
>     $entry{"file"} = "3dd.mp3";
>     $entry{"fullpath"} = "/mp3s/3dd";
>  $Data::Dumper::Purity = 1;
>     print Data::Dumper->Dump( [\%entry], [ '*entry' ] );
>     #my $dumpedvalues = $dumper->Dump();
>     #print $dumpedvalues . "\n";
> 
> 
> ***OUTPUT***
> 
> %entry = (
>            'album' => 'Away from the Sun',
>            'artist' => '3 Doors Down',
>            'fullpath' => '/mp3s/3dd',
>            'file' => '3dd.mp3',
>            'disc' => 'Away from the Sun',
>            'genre' => 'Rock'
>          );
> 

Hi Kevin,

This was interesting! I see what the difference is between your example and
"Dumper(\%entry)", but I wish I also understood what the man page says
about this:

<man Data::Dumper>
 In the extended usage form, the references to be dumped can be given
user-specified names.  If a name begins with a "*", the output will
describe the dereferenced type of the supplied reference for hashes and
arrays, and coderefs.
</man>

The 1st sentence I understand, but not "the dereferenced type of the
supplied reference."

I just tried this without the asterisk and get "$entry" instead of "%entry"
(or "$VAR1" using the plain procedure).

So in plain(er) English that means: if the name begins with an "*", the
output type will match that of the referenced variable"?

-K
-- 
Kevin Pfeiffer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to