[ale] Organizing data

Jason Etheridge phasefx at magusaptus.com
Wed Apr 28 08:52:57 EDT 2004


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



More information about the Ale mailing list