Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!agate!sunkist.berkeley.edu!raymond From: raymond@math.berkeley.edu (Raymond Chen) Newsgroups: comp.lang.perl Subject: Re: replacing " with `` and '' Message-ID: <1991May4.194141.25998@agate.berkeley.edu> Date: 4 May 91 19:41:41 GMT References: <1991May4.184851.3472@athena.mit.edu> Sender: root@agate.berkeley.edu (Charlie Root) Reply-To: raymond@math.berkeley.edu (Raymond Chen) Followup-To: comp.lang.perl Organization: U.C. Berkeley Lines: 31 In-Reply-To: bjaspan@athena.mit.edu (Barr3y Jaspan) Originator: raymond@sunkist.berkeley.edu In article <1991May4.184851.3472@athena.mit.edu>, bjaspan@athena (Barr3y Jaspan) writes: >[Instead of counting quote marks, check the context to determine if it's an >opening or closing quotation mark.] This method is more robust in the sense that it doesn't cause problems if your text contains nested quotations I wrote, "She said, `He said, "Ouch!"'" or long quotations "This is a long quoted section of text that goes on for pages and pages. "Which means that you never see a closing quotation mark until the quotation is ended, but you'll see lots of opening quotation marks at the beginning of each paragraph." or places where the symbol is not used as a quotation mark I'm not very tall; only 5'3". or even just typos I wrote, "This is a long quotation, and I forgot to put a closing quotation mark at the end. Later, I also wrote, "Another thing that I wrote." What does this have to do with perl? Beats me. was not a very useful reply.