A perl question
    brian 
    lists at karas.net
       
    Tue Apr 20 11:23:01 EDT 2004
    
    
  
Maybe someone can help?
Okay, so I'm trying to do something in perl, a "sort of" mail merge kind
of concept.
I have a block of text, something like:
"Blah blah blah blah ::company foo foo foo foo ::address"
I also have a bunch of variables populated with data ($company,
$address, $city, $state, $etc...)
I want to replace the "::tag" in the text block with the value of the
corresponding variable.  Ie: if $tag="SomeText" everytime I find ::tag
in the text block I want to remove ::tag and replace it with SomeText.
Every s/ operation I come up with always ends up replacing ::tag with
the literal "$tag".
Anybody can maybe point me in the right direction?
Thanks.
-- 
brian <lists at karas.net>
    
    
More information about the gnhlug-discuss
mailing list