On Sat, Jul 27, 2002 at 02:40:52PM -0700, John W. Krahn wrote:

> 
> I thought '<' and '/>' were already in the hash values?  If so, wouldn't
> this work?
> 
>   s[([&<>]|(?<=\\)$rx)][$rep{$1}]go;
> 
> 
> 

I don't understand this syntax:


>   s[([&<>]|(?<=\\)$rx)][$rep{$1}]go;
              ^^^

Is that another way of telling the regex that you don't want to save the
value?

If my hash looks like this:

my %rep = qw(
                ldblquote   <rt_quote/>
                rdblquote   <lt_quote/>
                &           &amp;
                >           &gt;
                <           &lt;
                .....
                );

Then you solution shold work. I planned to change my hash, but I guess I
got ahead of myslef in my email!

                
Paul

-- 

************************
*Paul Tremblay         *
*[EMAIL PROTECTED]*
************************

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

Reply via email to