crackotter has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl -w use strict; use MADEUP::MODULE; #Compeletly made up module my $made_up = new MADEUP::MODULE; #A member function of MADEUP::MODLE which returns a hash my $test = $made_up->Return_Hash(); #I know the key "fake_key" and I want to print off of it print $test{fake_key} . "\n";
print %{$test{fake_key}} . "\n";
everything works... What is going on??my %another= %{$test}; print $another{fake_key} . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Casting Question"
by TomDLux (Vicar) on Jun 15, 2003 at 01:27 UTC | |
by crackotter (Beadle) on Jun 15, 2003 at 01:30 UTC | |
|
Re: "Casting Question"
by theorbtwo (Prior) on Jun 15, 2003 at 03:00 UTC | |
|
Re: "Casting Question"
by The Mad Hatter (Priest) on Jun 15, 2003 at 01:35 UTC | |
|
Re: "Casting Question"
by mobiGeek (Beadle) on Jun 15, 2003 at 14:58 UTC |