On Mon, 2008-09-22 at 10:34 -0700, Grant wrote: > > 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; -- Just my 0.00000002 million dollars worth, Shawn Linux is obsolete. -- Andrew Tanenbaum -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/