Re: reg help: printing line numbers in file

2008-03-14 Thread Rob Dixon
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: > Hi John thanks for replay, script is working fine I am unable to understand following expression s!/\*.*?(?:\*/|$)!!, [snip] Gowri, and everybody, /please/ bottom-post your replies to this list. This has been getting out of hand recently, and

Re: reg help: printing line numbers in file

2008-03-14 Thread John W. Krahn
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] $ echo " /* requesting for the script * more * and more * for printing line number */ Fun_script() { Int a; /* local parameter */ Int b; /* local parameter */ /* adding the

Re: reg help: printing line numbers in file

2008-03-13 Thread John W. Krahn
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] $ echo " /* requesting for the script * more * and more * for printing line number */ Fun_script() { Int a; /* local parameter */ Int b; /* local parameter */ /* adding the

RE: reg help: printing line numbers in file

2008-03-13 Thread Gowri Chandra Sekhar Barla, TLS, Chennai
! and ?: Thanks and regards Gowri -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 9:09 PM To: Perl Beginners Subject: Re: reg help: printing line numbers in file Gowri Chandra Sekhar Barla, TLS, Chennai wrote: > > From: John W. Krahn [

Re: reg help: printing line numbers in file

2008-03-13 Thread John W. Krahn
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] Gowri Chandra Sekhar Barla, TLS, Chennai wrote: Can any one please give the scripting for appending line numbers for the code lines For example: /* requesting for the script * for printing lin

Re: reg help: printing line numbers in file

2008-03-12 Thread yitzle
If you are using Unix and don't necessarily want it done via a Perl script, you can just use the cat command. cat -n -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: reg help: printing line numbers in file

2008-03-12 Thread John W. Krahn
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: Hi Hello, I am new to perl Can any one please give the scripting for appending line numbers for the code lines For example: /* requesting for the script * for printing line number */ Fun_script() { Int a; /* local parameter */ Int b;