Kenneth, use this (like Mark suggested) $var{'heygoodday'} = 'how are doing you sir'; $var{'hi'} = "hey";
$var{'hello'} = $var{ $var{'hi'} . 'goodday' }; print $var{'hello'}; Dietmar ____________________________________________________________ Hamburger Berater Team GmbH Dr. Dietmar Fiehn Telefon: 040/369779-0 Stadthausbrücke 3 (Fleethof) Telefax: 040/369779-99 20355 Hamburg eMail : [EMAIL PROTECTED] ____________________________________________________________ > -----Ursprüngliche Nachricht----- > Von: Kenneth Lodahl (KELO, ITRC, SH) [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 24. März 2004 14:45 > An: [EMAIL PROTECTED] > Betreff: Can a variable be made like this? > > > $heygoodday = "how are doing you sir"; > > $hi = "$hey"; > > $hello = $hi"."goodday"; > > Print $hello; > > And get the output from $heygoodday? Is this possible in perl? > I need it because I now the last piece of the variable name "goodday", > And the first piece that I need to get from the db. So that could be > different. > > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs