<[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
; 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
[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!
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
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
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
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
> 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
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
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:
> 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&
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
How do you keep line numbering straight in a perl script.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
13 matches
Mail list logo