you can do what you want, but not quite as you stated. It would be something like this:
$hi = $db->lookup; # how you do this depends on your db and script
$hello = "${hi}goodday";
print $hello;
> -----Original Message-----
> From: Kenneth Lodahl (KELO, ITRC, SH) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 24, 2004 8:45 AM
> To: [EMAIL PROTECTED]
> Subject: 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
