if $mailbox is HASH(0x222b4c) then getMailboxAvailability() is returning a hash reference. You need to dereference it. The clearest way (but definately not the only way or even the best way... TIMTOWTDI) is like this:my $mailbox = $conn->getMailboxAvailablity ( DOMAIN => $UserDomainName MAILBOX_LIST => $UserLoginName)
But your question is a bit vague so I'm not sure what you are asking. You didn't post a complete subroutine, so I don't know what's really going on. But at least I can tell you how to deal with HASH(0x222b4c)my %dereferenced_hash = %{$hash_reference}; # of course, you can also access elements via the ref directly: print "yeah\n" if exists $$hashref{'key2'}; # or even print "insufficient\n" unless $hashref->{'balance'} > $request;
In reply to Re: HELP! - trouble returning values
by Adam
in thread HELP! - trouble returning values
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |