Re: Line Numbering

2003-08-04 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you everyone for your suggestions. > > This is getting more and more interesting. The script I am looking at > actually worked once!! > > I tried to use dianostics to no avail. I got the following message: > > syntax error at sy

RE: Line Numbering

2003-08-04 Thread johnstonp
; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 8:15 AM > To: [EMAIL PROTECTED] > Subject: Line Numbering > > > Hi all, > > I've been thrown in the deep end to try and work out what the problem with > a perl script running on Nove

Re: Line Numbering

2003-08-01 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > Hi all, > > I've been thrown in the deep end to try and work out what the problem with > a perl script running on Novell Bordermanager. I'm probably going to have > a few stupid questions over the next few days. Please forgive me before > hand, and dont laugh too much!

RE: Line Numbering

2003-08-01 Thread Marcos . Rebelo
write use diagnostics; gives you more information about errors Marcos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 8:15 AM To: [EMAIL PROTECTED] Subject: Line Numbering Hi all, I've been thrown in the deep end to try and

Re: Line Numbering

2003-08-01 Thread Janek Schleicher
johnston wrote at Fri, 01 Aug 2003 14:15:18 +0800: > My stupid question number one is: When Perl processes the script, how > does it identify the lines of code? ie.. If an error occurs at line 125, > is that the 125'th line of actual code, or does it count every single line > in the script fr

Line Numbering

2003-08-01 Thread johnstonp
Hi all, I've been thrown in the deep end to try and work out what the problem with a perl script running on Novell Bordermanager. I'm probably going to have a few stupid questions over the next few days. Please forgive me before hand, and dont laugh too much! I am trying to bolster my knowl

Re: Line numbering.

2002-03-18 Thread zentara
On Sun, 17 Mar 2002 08:44:12 -0500, [EMAIL PROTECTED] (Gkotsovilis) wrote: >How do you keep line numbering straight in a perl script. A cool way is to use an undocumented module called Filter::NumberLines Here's the URL of this filter: http://www.perlmonks.org/index.pl?node_id=125

Re: Line numbering.

2002-03-17 Thread Jonathan E. Paton
> Perhaps you learnt to program with something like > Apple Basic like I did when I was > 10 years old on the Apple IIe > which requires line numbers. Or the BBC Micro, or the commodore 64, or the Spectrum or the . > Perl doesn't need them. But you can have them if you want them: #!/usr/bin/pe

RE: Line numbering.

2002-03-17 Thread Timothy Johnson
were accepted, and impersonate anyone on the network. The scary part? They were working on a way to connect the system to the Internet. -Original Message- From: Mark Maunder To: gkotsovilis Cc: [EMAIL PROTECTED] Sent: 3/17/02 8:22 AM Subject: Re: Line numbering. Perhaps you learnt to pr

Re: Line numbering.

2002-03-17 Thread Mark Maunder
Perhaps you learnt to program with something like Apple Basic like I did when I was 10 years old on the Apple IIe which requires line numbers. Perl doesn't need them. gkotsovilis wrote: > How do you keep line numbering straight in a perl script. > > -- > To unsubscribe, e-mail:

Re: Line numbering.

2002-03-17 Thread Jonathan E. Paton
> How do you keep line numbering straight > in a perl script. No code example? I can only assume you want: while (<>) { printf "%.5d: %s", $., $_; } or maybe: while (<>) { printf "%5s: %s", $., $_; } or even: perl -n -e 'printf&

Re: Line numbering.

2002-03-17 Thread Jenda Krynicky
From: gkotsovilis <[EMAIL PROTECTED]> > How do you keep line numbering straight in a perl script. Beg your pardon? What line numbering? How is it not straight? What do you do, what do you expect and what do you get? Jenda === [EMAIL PROTECTED] == http://Jenda.Kr

Line numbering.

2002-03-17 Thread gkotsovilis
How do you keep line numbering straight in a perl script. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]