I have an array of hashes. What function should I be
using to interrogate each array cell when I want to
know if it is occupied?

  "exists" seemed to do the job nicely. What about
"defined"?

Now I am curious: how would I implement a switch
statement (er, I mean, set of if-elsif statements) for
a hetrogeneous array where some array cells contain
arrays, others integers, other hashes?

I tried saying
  my @x;
 if(@x && $x[$ii] && %{$x[$ii]} && exists
$x[$ii]{"xyz"}){
     my $z = $x[$ii]{"xyz"};
   ...}

But that did not work. There must be some function
that will tell me "this array cell contains a hash,
this other array cell contains another array...".

  Thanks,
     Sieg

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to