How to convert ([^]*) to ``$1''?

2005-06-05 Thread Zeng Nan
Hi, I'd like to convert a text file to tex. One thing I encounter is that there are lots of dialogues, and I want to transform to `` '' properly. I try to use s/([^]*)/``$1/gs but it doesn't work correctly. Any ideas? Regards, -- Zeng Nan Simple is Beautiful

Re: How to convert ([^]*) to ``$1''?

2005-06-05 Thread Zeng Nan
Thanks all. I have figured it out. I should have used `undef $/' at the beginning so that the whole file is treated as a string. -- Zeng Nan Simple is Beautiful. PGP Key: http://hobbit.homeunix.org pgpkkAaQGvqEE.pgp Description: PGP signature

A question about backreference

2005-03-11 Thread Zeng Nan
using a space? I hope I have made myself understood. -- Zeng Nan Simple is Beautiful. PGP Key: http://hobbit.homeunix.org pgpYnph63Kr46.pgp Description: PGP signature

Re: A question about backreference

2005-03-11 Thread Zeng Nan
/\d+$/456/ It will substitute the last set of digits and doesn't care if you do or don't have the spaces. Thanks to all. Now I know how to do it. -- Zeng Nan Simple is Beautiful. PGP Key: http://hobbit.homeunix.org pgpEgvNZmQJNW.pgp Description: PGP signature

a question about the return value of a subroutine

2004-11-25 Thread Zeng Nan
, as it is the last expression being evaluated, is it correct? Thanks in advance. -- Zeng Nan Simple is Beautiful. PGP Key: http://hobbit.homeunix.org pgpTSqHV50Dji.pgp Description: PGP signature

why $000 is a valid variable name?

2004-11-18 Thread Zeng Nan
Hi, As said in Learning Perl, a perl identifier is a letter or underscore, and then possibly more letters, or digits, or underscores. Because of this, $123 is an invalid name, but why $000 or $00 works? Regards, -- Zeng Nan Simple is Beautiful. PGP Key: http

Why $000 is a valid variable name?

2004-11-18 Thread Zeng Nan
According to Learning Perl, a variable name should be a letter or underscore, and then possibly more letters, or digits, or underscores. But why $000 or $ works? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: why $000 is a valid variable name?

2004-11-18 Thread Zeng Nan
On Thu, Nov 18, 2004 at 02:15:45PM +0100, Ing. Branislav Gerzo wrote: Zeng Nan [ZN], on Thursday, November 18, 2004 at 13:43 (+0800) wrote these comments: ZN As said in Learning Perl, a perl identifier is a letter or ZN underscore, and then possibly more letters, or digits, or underscores