Hi Shlomi, > Instead of calling your variables $sql_$kurz and $sth_$kurz, etc. put them in > %umg hash or a different one - possibly referenced by keys of a hash > reference or slots of an object: > > {{{ > my $lang_sql = $runtime_data{$lang} = NoraSqlObject->new; > > $lang_sql->sql( > "select * from umgebungen_vw where beschreibung like \'$lang%\'" > ); > $lang_sql->sth($dbh->prepare($lang_sql->sql)); > }}} > > In your case, I don't see you are using the various $kurz variables outside the > loop so I don't see why you need to associate them with the varvarname.
I'm really sorry but since I am quite new to Perl I just don't understand what you mean. :-( In your opinion, what should the hash mentioned in your first paragraph contain? And where does NoraSqlObject come from? Thanks, Nora -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/