Manfred Lotz schreef: > I like to specify a raw string, like for example $w: > > my $who = "my friend"; > my $w = q(This is \n $who.); > > > Now I want to evaluate that raw string so that the result is a string: > This is > my friend. > > > eval doesn't seem to help. > > > Actually I want to be able to specify a raw string where at the end of > the day only variables get expanded. > > > Any idea how to do this?
This is an X-Y question. ("How do I X with Y?") That is a bad question format. A good question format is "How do I X?". Now tell us a bit more about what you want to achieve and about its environment. Maybe you need a closure, or even just a sprintf, to do it properly. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/