in reply to Parsing variables from one file to another.

You can substitute in your while-print loop, like this:
while( <TEMPLATE> ) { s/\$dname/$dname/g; print TARGET ; }

Replies are listed 'Best First'.
Re^2: Parsing variables from one file to another.
by fatmcgav (Novice) on Jan 21, 2009 at 14:24 UTC
    the above worked a treat for what i wanted to do...

    cheers..

    Gav