>> > what about
>> >
>> > $code =~ tr/['"]/["']/;
>> >
>> > ?
>>
>> I shouldn't have said characters. I'm actually trying to switch "'"
>> and "'" without the double-quotes. Can that be done as simply as
>> your one-liner above?
>
> $code = s{ (['\x22]) }{ '&#' . ord( $1 ) . ';' }egx;Thanks but I don't follow. How does it work? - Grant -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
