Joel wrote:
> I'm running perl under windows XP and I keep geting this error:
>
> syntax error at (Directory and filename) Line 6, near " )
> {"
> syntax error at (directory and filename) line 9 near "}"
>
> The source code is below, but this happens with loops in general. Any
> ideas?
>
>
> I'm running perl under windows XP and I keep geting this error:
>
> syntax error at (Directory and filename) Line 6, near " )
> {"
> syntax error at (directory and filename) line 9 near "}"
>
> The source code is below, but this happens with loops in
> general. Any ideas?
>
> ---
> -Original Message-
> Subject: Why does this keep happening?
>
> I'm running perl under windows XP and I keep geting this error:
>
> syntax error at (Directory and filename) Line 6, near " )
> {"
> syntax error at (directory and filename) line 9 near "}"
>
> The source code is below, bu
Thanks, but what does "My" mean and why did you use "print" twice in a row?
Joel
- Original Message -
From: "Dan Muey" <[EMAIL PROTECTED]>
To: "Joel" <[EMAIL PROTECTED]>; "perl" <[EMAIL PROTECTED]>
Sent: Tuesday,
I fixed the source code with the suggestions given, but still no luck. Any
other ideas?
Joel
---
#!usr/bin/perl
$abc=1000
until ($abc==0)
{
print "Counting down to 0 from $a\n";
$a--;
}
print "Blast off!";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Joel wrote:
> I fixed the source code with the suggestions given, but still no
> luck. Any other ideas?
>
> Joel
> ---
> #!usr/bin/perl
>
> $abc=1000
>
> until ($abc==0)
> {
> print "Counting down to 0 from $a\n";
> $a--;
> }
> print "Blast off!";
This doe
--As of Tuesday, February 17, 2004 5:28 PM -0500, Joel is alleged to have
said:
I fixed the source code with the suggestions given, but still no luck. Any
other ideas?
Joel
---
# !usr/bin/perl
$abc=1000
Still need a semicolon... (and a 'my', for preference.
YOURS:
#!usr/bin/perl
$abc=1000
until ($abc==0)
{
print "Counting down to 0 from $a\n";
$a--;
}
print "Blast off!";
MINE:
#!usr/bin/perl
use strict;
use warnings;
my $abc = 1000;
until ($abc == 0) {
print "Counting down to 0 from $abc\n";
$abc--;
}
print "Blast off!";
hint #1: Watch o
#!/usr/bin/perl
use strict;
use warnings;
my $abc = 1000;
until ($abc == 0) {
print "Counting down to 0 from $abc\n";
--$abc;
};
print "Blast off!\n";
Remember your semicolons and try to use strict. I try to be readable above
all else. Because then at least if the code doesn't work,
Joel wrote:
> Thanks, but what does "My" mean
That is my, not My. Perl is case-sensitive. It is the declaration of the
identifier as a varaible within the current scope, rather than one imported from
a larger outside scope. Until you understand the reasons to do this, go ahead
and take it on
Joel wrote:
>I fixed the source code with the suggestions given, but still no luck. Any
>other ideas?
>
>Joel
>---
>#!usr/bin/perl
>
>$abc=1000
>
>until ($abc==0)
>{
>print "Counting down to 0 from $a\n";
>$a--;
>}
>print "Blast off!";
>
Apart from the miss
On Feb 18, 2004, at 5:21 AM, Jan Eden wrote:
Apart from the missing semicolon, I don't know if Perl on Windows like
the shebang line at the beginning. With Unix, it's the right way to do
it.
Perl on Windows has no problem with the shebang line and I do prefer to
leave it in all scripts. Other'
Jan Eden wrote:
>
> Apart from the missing semicolon, I don't know if Perl on Windows like the shebang
> line at the beginning. With Unix, it's the right way to do it.
It doesn't care. It ignores the path information, but does read any switches on the
line.
Joseph
--
To unsubscribe, e-mai
R. Joseph Newton wrote:
>
> Jan Eden wrote:
>
> >
> > Apart from the missing semicolon, I don't know if Perl on Windows like the
> > shebang line at the beginning. With Unix, it's the right way to do it.
>
> It doesn't care. It ignores the path information, but does read any switches
> on the line.
UNCLASSIFIED
IIRC, I believe Apache uses the shebang line in Perl scripts on the Windows
platform.
-Original Message-
From: R. Joseph Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 9:48 AM
To: Jan Eden
Cc: Joel; Perl Lists
Subject: Re: Why does this keep happening
In a message dated 2/18/2004 9:48:24 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:
IIRC, I believe Apache uses the shebang line in Perl scripts on the Windows
platform.
You are correct. It does.
Will
16 matches
Mail list logo