RE: Problem with use strict;

2004-05-20 Thread Jan Eden
MCMULLIN, NANCY wrote on 14.05.2004: >But when I run the same code with use strict commented out - it >works just fine... A little late maybe, but CGI::Carp might be something for you. Its method fatalsToBrowser sends Perl's error messages to your browser window. HTH, Jan -- These are my prin

Re: [Perl-beginners] RE: Problem with use strict;

2004-05-14 Thread Remko Lodder
Hi, When I include the line use strict; in any perl program, I get the following error: "Internal Server Error What does occur when you run the file manually? perl -T $filename Perhaps that gives a possible error definition, Personally i tend to use ; use diagnostics; use warnings; use strict; so

RE: Problem with use strict;

2004-05-14 Thread MCMULLIN, NANCY
Okay - got it. It now works prefacing $str = .. with my. Thanks everyone. -Original Message- From: Andrew Gaffney [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 1:30 PM To: [EMAIL PROTECTED] Subject: Re: Problem with use strict; MCMULLIN, NANCY wrote: > But when I run the s

Re: Problem with use strict;

2004-05-14 Thread Andrew Gaffney
MCMULLIN, NANCY wrote: But when I run the same code with use strict commented out - it works just fine... 'use strict' enforces the use of 'my' or 'our' for variable declarations. If a variable declaration doesn't have that while 'use strict' is in effect, the program won't compile. -- Andrew Ga

RE: Problem with use strict;

2004-05-14 Thread MCMULLIN, NANCY
But when I run the same code with use strict commented out - it works just fine... -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 1:15 PM To: MCMULLIN, NANCY; [EMAIL PROTECTED] Subject: RE: Problem with use strict; MCMULLIN, NANCY wrote

RE: Problem with use strict;

2004-05-14 Thread Bob Showalter
MCMULLIN, NANCY wrote: > Hi there. > Brand new to PERL so please bear with me. (I'm running Win32/Apache) Hi. It's "Perl", not "PERL". You're excused since you're brand new :~) > > When I include the line > use strict; > in any perl program, I get the following error: > "Internal Server Error

Re: Problem with use strict;

2004-05-14 Thread WilliamGunther
In a message dated 5/14/2004 3:05:01 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: >Hi there. >Brand new to PERL so please bear with me. (I'm running Win32/Apache) > >When I include the line >use strict; >in any perl program, I get the following error: >"Internal Server Error Problem in

Re: problem with 'use strict'

2001-10-29 Thread Piers Cawley
"Brett W. McCoy" <[EMAIL PROTECTED]> writes: > On Sun, 28 Oct 2001, Piers Cawley wrote: > >> > strict is very picky... but it's a good thing to use because it >> > enforces good, clean programming practices. In Perl6, strict will be >> > on by default, so it has been written. >> >> It has? Where

Re: problem with 'use strict'

2001-10-29 Thread Piers Cawley
"Brett W. McCoy" <[EMAIL PROTECTED]> writes: > On Fri, 26 Oct 2001, David Gilden wrote: > >> > Sorry, I meant that to say "And it runs without 'use strict'? >> >> Yes the code works fine, untill I try to use strict > > strict is very picky... but it's a good thing to use because it > enforc

Re: problem with 'use strict'

2001-10-28 Thread Brett W. McCoy
On Mon, 29 Oct 2001, Piers Cawley wrote: > So it seems that Larry is minded to keep the current situation where > strict doesn't get turned on unless you want it. And I don't remember > him saying anything different in any of the later Apocalypses, which > I've been following rather closely. OK,

Re: problem with 'use strict'

2001-10-28 Thread Brett W. McCoy
On Sun, 28 Oct 2001, Piers Cawley wrote: > > strict is very picky... but it's a good thing to use because it > > enforces good, clean programming practices. In Perl6, strict will be > > on by default, so it has been written. > > It has? Where? And by whom? I believe it was in one of the various

Re: problem with 'use strict'

2001-10-27 Thread Brett W. McCoy
On Fri, 26 Oct 2001, David Gilden wrote: > > Sorry, I meant that to say "And it runs without 'use strict'? > > Yes the code works fine, untill I try to use strict strict is very picky... but it's a good thing to use because it enforces good, clean programming practices. In Perl6, strict wil

Re: problem with 'use strict'

2001-10-26 Thread GoodleafJ
David Gilden <[EMAIL PROTECTED]>, [EMAIL PROTECTED] cc: 10/26/01 02:39 Subject: Re:

Re: problem with 'use strict'

2001-10-26 Thread David Gilden
On Friday, October 26, 2001 at 5:38 PM, [EMAIL PROTECTED] (Brett W. McCoy) wrote: > > Sorry, I meant that to say "And it runs without 'use strict'? Yes the code works fine, untill I try to use strict Dave ** * Cora Connection Your We

Re: problem with 'use strict'

2001-10-26 Thread Maxim Berlin
Hello David, Saturday, October 27, 2001, David Gilden <[EMAIL PROTECTED]> wrote: DG> As an exercise I have two files, a library file and a main DG> file. If I try to 'use strict' my script won't run. DG> What do I have to change so that things will work correctly with DG> out clobbering any of

Re: problem with 'use strict'

2001-10-26 Thread Brett W. McCoy
On Fri, 26 Oct 2001, Brett W. McCoy wrote: > > As an exercise I have two files, a library file and a main > > file. If I try to 'use strict' my script won't run. > > And it runs with 'use strict'? Sorry, I meant that to say "And it runs without 'use strict'?" -- Brett

Re: problem with 'use strict'

2001-10-26 Thread Brett W. McCoy
On Fri, 26 Oct 2001, David Gilden wrote: > As an exercise I have two files, a library file and a main > file. If I try to 'use strict' my script won't run. And it runs with 'use strict'? What errors do you get when you turn on the strict pragma? > # library file dbi-lib.pl > > my $user_name =