On Mar 15, Peter Rabbitson said:
... I'll get it some day. As far as dereferencing with ->, which I
asked earlier but I never got an answer to. For example are
$sources{${$batch_ref}{by_method}}{card_def}
and
$sources->($batch_ref->by_method)->card_def
No, not at all.
$sources{${$batch_ref}{by_me
> And once again, you've written some round-about referencing code:
... I'll get it some day. As far as dereferencing with ->, which I
asked earlier but I never got an answer to. For example are
$sources{${$batch_ref}{by_method}}{card_def}
and
$sources->($batch_ref->by_method)->card_def
equi
On Mar 14, Peter Rabbitson said:
sub sub_call {
my ($hashref, $object) = @_;
print "Now working on $object using values\n";
foreach my $key (keys %{${$hahsref}{$object}}) {
print "$key\n";
}
}
Simple enough right? What I was asking is how can I get th
On Mon, Mar 14, 2005 at 05:32:01PM -0800, Tim Johnson wrote:
>
> Did you try enumerating the keys of %hash?
>
> foreach my $outerKey(sort keys %hash){
>print "$outerKey\n";
>foreach my $innerKey(sort keys %{$hash{$outerKey}}){
> print "\t$innerKey\n";
>}
> }
I guess I have to e
ECTED]
Sent: Monday, March 14, 2005 5:21 PM
To: beginners@perl.org
Subject: Reference name
[Tim Johnson]
my %hash = (
abcd => {
a1 => 1,
a2 => 2,
a3 => 3
}
);
How can I access the name (abcd) of the passed reference ins
The answer to this question is probably beyond trivial but I can't figure it
out. Say we have the following situation:
my %hash = (
abcd => {
a1 => 1,
a2 => 2,
a3 => 3
}
);
another_nasty_sub (\%{$hash{abcd}});
How can I access the