On Tuesday, May 21, 2002, at 12:23 , Ovid wrote:
> Use the 'ref' function for this: > > perldoc -f ref my complements. why can I never remember that one.... once again thanks... I have updated http://www.wetware.com/drieux/pbl/perlTrick/WhatIsMeetsIsa.txt and I think I have a possible solution for the 'limitiations' of ref($ref) - which does not always return "SCALAR" if you are passing it the actual 'variable' and not a reference to it. But I fear I agree with you on the core problem analysis, namely that when a player gets into this space it may be time to rethink the data model. Either to adopt a naming schema of the form my %hash = ( keyScalar = 'v1Thing', keyHash = { i1 => qw/i1val/, i2 => qw/i2val/ }, ) so that they have 'keys' that they can really use... Or work out what they really need as a Data Model. All too often in 'the rush to get it out' - we type before we think - and the maintenance cost of the code starts ketching up after a while... ciao drieux --- "One Data Model to Go, hold the mayo, hold the lettuce french dressing on the side in a cup." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]