on do, 07 nov 2002 17:13:22 GMT, Tim Yohn wrote: > Hey All, > > Is there an easy way to have variables in the value of a hash that are > not populated until the value of the hash is used...
my($domain); my(%hash) = ( 1 => '$domain' ); print_domain("test.com"); sub print_domain() { my($domain) = @_; print eval "$hash{'1'}"; } See perldoc -f eval -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]