"David Hofmann" <[EMAIL PROTECTED]> writes: > I was using this system and exporting the results to %in so that I > could use $in{VAR} in my program. > > Which allows me to do > > $temp= "BOB"; > print "$temp = $in{$temp}<BR>\n"; > > To my knowledge, which may be lacking considering I just recently > started playing with refrences, if I use option 1 or 2 I would have to: > > $temp= "BOB"; > $bob = $t->get($temp); > print "$temp = $bob<BR>\n"; > > Is there where way to put the $t->get inside of a "s?
Use $t as a hash-ref: print "$temp = $t->{$temp}<BR>\n"; That only prints the first $temp param (unless your iterating over the table with each(), which magically pulls the current $temp param). But you probably don't want $temp multivalued here unless you don't mind having print "$temp = $in{$temp}<BR>\n"; embed those \0's in your HTML. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html