But is that faster than using eval()?
You could fire up the Benchmark module and find out...
Faster or not though, I very much prefer it. It's a subroutine built to do what you want, walk a hash tree. Using full fledge Perl code for that is overkill. It's too easy to make simple syntax errors.
You also said that users will be supplying the keys. You better think LONG and HARD before feeding random user input to perl itself. That's pretty much a tactical nuke to security. Even typos could be dangerous.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>