RE: Why does this keep happening?

2004-02-17 Thread Bob Showalter
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? > >

RE: Why does this keep happening?

2004-02-17 Thread Dan Muey
> 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? > > ---

RE: Why does this keep happening?

2004-02-17 Thread Bakken, Luke
> -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

Re: Why does this keep happening?

2004-02-17 Thread Joel
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,

Re: Why does this keep happening?

2004-02-17 Thread Joel
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

RE: Why does this keep happening?

2004-02-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Re: Why does this keep happening?

2004-02-17 Thread Daniel Staal
--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.

Re: Why does this keep happening?

2004-02-17 Thread Robert
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

Re: Why does this keep happening?

2004-02-17 Thread WilliamGunther
#!/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,

Re: Why does this keep happening?

2004-02-17 Thread R. Joseph Newton
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

Re: Why does this keep happening?

2004-02-18 Thread Jan Eden
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

Re: Why does this keep happening?

2004-02-18 Thread James Edward Gray II
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'

Re: Why does this keep happening?

2004-02-18 Thread R. Joseph Newton
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

Re: Why does this keep happening?

2004-02-18 Thread Rob Dixon
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.

RE: Why does this keep happening? (U)

2004-02-18 Thread Meidling, Keith, CTR, ISD
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

Re: Why does this keep happening? (U)

2004-02-18 Thread WilliamGunther
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