Jan Eden wrote: > Hi Stuart, > > @testarray gets the content of testmessage.txt, which contains the string '$name'. > You cannot manipulate this string by setting the variable $name. You could do: > > @testarray =~ s/\$name/$name/g; > > which will replace the literal string '$name' using your variable's content.
> > I am just a beginner myself, and this is not meant to be a cool solution to > anything, just a pointer. Actually, this is an excellent suggestion for using placeholders in template files. I would suggest, though, that it would be better to use some other delimiter to indicate such place-holder, perhaps %placeholdername%., to distinguish these from program variables more readily. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>