Jim Schueler wrote:There is an obsolete perl feature called indirect references. If you are thinking of a specific technology, that might be it.Personally, I would simply change the last line of your code to: print eval $value ; Jim Schueler Motor City Interactive On Wed, 27 Jul 2005, Greg wrote:Sorry if this has been answered before but I am in a quandary. I am trying to get the contents of a variable when that variables name is itself in a different variable. For example: $database_name = "Greg"; $text = "database_name"; $value = "\$" . $text; print $value; I need to have 'Greg' printed not $name; Is this possible? Seems I've seen this before but can't recall. Thanks for all your help. Greg Thank you to everyone that helped with my problem! Everything working great now! Greg |
_______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs