1 - What is the best char to use in a file template?
    Also, please give me a good regex?

I will have a formatted html page with some keys that I want to replace.

For example,

...
<!-- here my token is a ! -->
<td>First Name:</td><td>!fname!</td>
<td>Last Name:</td><td>~!lname!</td>
...

2 - Can I read in the whole page and do a replacement?
I'm thinking it's either a line-by-line or a whole page as below:

#line-by-line replace token
$line ~= s/!fname!/$fname/

#or put the whole template in
$page ~= s/!fname!/$fname/
$page ~= s/!lname!/$lname/

thanks,
-rkl


-----------------------------------------
eMail solutions by 
http://www.swanmail.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to