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
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
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
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
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
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
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
"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
"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
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,
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
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
David Gilden
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
cc:
10/26/01 02:39 Subject: Re:
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
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
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
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 =
17 matches
Mail list logo