[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Organizing data



Chris Fowler wrote:
> When I get into the hash of hashes I have to know if a key points to a
> value or another hash.

if ( ($a_ref->($ref}->{$ref2}->{$ref3}) =~ /^HASH(.+)$/ ) {

	// it's probably a hash reference unless stuff
	// like "HASH(0x10d870)" could be valid data

} else {

	// it's not a hash

}

> So I want to mimic the data I just want to do it right.

There's the kicker.  How do you define that? :D

-- Jason