> Is there a test I can do to determine the type of reference 
> that has been created?

Yes, ref()

if(ref($refofsomekind) eq 'SCALAR') { print "You are a scalar reference"; }

> 
> ie. array of arrays, array of hashes, hash of hashes.

Hmmm  abit more complicated but doable:

        if(ref($originalref) eq 'ARRAY') { 
                print "The original referenc is an array ref\n";
                for(@{$originalref}) {
                        if(ref($_) eq 'ARRAY') { print "I have an element that is an 
array ref"; } 
                        # or count each type or whatever
                        ...
                } 
        } elsif(ref($originalref eq 'HASH') {
                print "The original reference is a hash ref\n";
                for(keys %{$originalref}) {
                        ...
                }
        }

perldoc -f ref

HTH

DMuey

> 
> I'm in a position where I didn't created the reference but 
> still need to access it.
> 

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

Reply via email to