Ask a Question related to PERL Beginners, Design and Development.
-
Raghu Murthy #1
Inserting Line Number
I would like to insert line numbers for all the files in a directory.
So if a directory contains files like foo.c, foo.c1, foo.c2, foo.c3,
foo.c4, I am trying to see and choose one of the numbers to process
it.
1. foo.c1
2. foo.c2
3. foo.c3
4. foo.c4
Can I use __LINE__ or $. to do that or am I wrong?
Any suggestions or ideas would be appreciated.
Thanks
Raghu
Thank You
Raghu
__________________________________________________ _______________
Send a QuickGreet with MSN Messenger
[url]http://www.msnmessenger-download.com/tracking/cdp_games[/url]
Raghu Murthy Guest
-
inserting line break within label
Hey guys, i've run into a small problem with the coding. right now im creating image viewer within a horizontal list. at first, i had each object... -
Inserting character by UNICODE number
How is this done? Inserting character from for example Glyphs pallette into text frame. In the older days you put ASCII code by alt + number on... -
INSERTing Line Breaks into MySQL DB using ASP
Hi All Could you please let me know how my ASP page can insert 1 row of data containing line breaks into a MySQL DB. To explain, I'm using ASP... -
Get number of line with error
Hi all. I want ask you it exist some way how to get number of line in script producing error. for example: .... .... 100 ... -
Error line number
Hi Newsgroup, A very short question: If have a try/catch structure. In the catch part I would like to get the line number where the exception... -
James Edward Gray II #2
Re: Inserting Line Number
On Nov 9, 2003, at 3:56 PM, Raghu Murthy wrote:
I would read them into an array, then use the indexes for numbering.> I would like to insert line numbers for all the files in a directory.
> So if a directory contains files like foo.c, foo.c1, foo.c2, foo.c3,
> foo.c4, I am trying to see and choose one of the numbers to process
> it.
>
> 1. foo.c1
>
> 2. foo.c2
>
> 3. foo.c3
>
> 4. foo.c4
>
> Can I use __LINE__ or $. to do that or am I wrong?
>
> Any suggestions or ideas would be appreciated.
Just remember to add one to them when printing and subtract one when
matching them up. Hope that helps.
James
James Edward Gray II Guest



Reply With Quote

