Re: Use Strict

2005-01-14 Thread Shaun Fryer
> perldoc -f my > perldoc -f package > perldoc perlmod > perldoc Exporter Also along the same lines, you can get rid of alot of the grunt work by using the following on the unix command line (not sure about win32, sorry ... but try anyway). h2xs -AXn ModuleName The result will be a fully

RE: Use Strict

2005-01-14 Thread Graeme St. Clair
ssage- From: Ovid [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 8:09 PM To: Graeme St. Clair; beginners-cgi@perl.org Subject: RE: Use Strict --- "Graeme St. Clair" <[EMAIL PROTECTED]> wrote: > Now I have another Q arising out of this. I have an irreducible pair

RE: Use Strict

2005-01-13 Thread Ovid
--- "Graeme St. Clair" <[EMAIL PROTECTED]> wrote: > Now I have another Q arising out of this. I have an irreducible pair > of > 'requires explicit package name' msgs that I can't see how to fix. > One > example is:- > > ...perl perl perl > require 'bunch_of_constants.pl'; > ...perl perl perl > $

RE: Use Strict

2005-01-13 Thread Graeme St. Clair
hange? Rgds, GStC. -Original Message- From: Randy W. Sims [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 6:59 PM To: Graeme St. Clair Cc: beginners-cgi@perl.org Subject: Re: Use Strict Graeme St. Clair wrote: > In accordance with The Rules, I added use strict & us

Re: Use Strict

2005-01-13 Thread Randy W. Sims
Graeme St. Clair wrote: In accordance with The Rules, I added use strict & use warnings to a script invoked from a browser page on the same machine. Last time I did this, as soon as I used the browser page, Apache 'error.log' promptly showed scads of msgs along the lines of '[

Use Strict

2005-01-13 Thread Graeme St. Clair
In accordance with The Rules, I added use strict & use warnings to a script invoked from a browser page on the same machine. Last time I did this, as soon as I used the browser page, Apache 'error.log' promptly showed scads of msgs along the lines of '[Wed Dec 08 11:03:52 20

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Joel Hughes
because Perl has evolved over time? joel -Original Message- From: Jake [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 13:56 To: [EMAIL PROTECTED] Subject: Why do we even HAVE to... (was: Why using use strict;) So, in post after post after post I see the comment "always use s

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Nikola Janceski
I was referring to those just touching the water, not the ones already waist deep. yes after you have your feet wet you should be using "use strict" at all times, and don't forget "use warnings" to help with those foolish mistakes we all make. If only I knew that b

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Jake [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 8:56 AM > To: [EMAIL PROTECTED] > Subject: Why do we even HAVE to... (was: Why using use strict;) > > > So, in post after post after post I see the comment "alw

Re: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Jake
IMHO only the first of these may be a valid reason. But I dont know much about "perl one liners". Your second reason is particularly bad, beginners are the ones who need "use strict" the most! On Wednesday 05 June 2002 10:12 am, Nikola Janceski wrote: > because it woul

RE: Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Nikola Janceski
TECTED]] > Sent: Wednesday, June 05, 2002 8:56 AM > To: [EMAIL PROTECTED] > Subject: Why do we even HAVE to... (was: Why using use strict;) > > > So, in post after post after post I see the comment "always > use strict"... > > I have seen threads where people a

Why do we even HAVE to... (was: Why using use strict;)

2002-06-05 Thread Jake
So, in post after post after post I see the comment "always use strict"... I have seen threads where people are insulted because they dont... Every perl tutorial I've seen says you should always "use strict"... It apparently doesnt slow down code execution... If y

Re: Why using use strict;

2002-06-05 Thread drieux
On Wednesday, June 5, 2002, at 05:51 , Bob Showalter wrote: >> -Original Message- >> From: Janek Schleicher [mailto:[EMAIL PROTECTED]] >> Sent: Wednesday, June 05, 2002 6:19 AM >> Octavian Rasnita wrote at Tue, 04 Jun 2002 08:03:21 +0200: >>> >&g

RE: Why using use strict;

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 2:03 AM > To: [EMAIL PROTECTED] > Subject: Why using use strict; > > > Hi all, > > I know why I should use "use strict;" but what happen i

RE: Why using use strict;

2002-06-05 Thread Bob Showalter
> -Original Message- > From: Janek Schleicher [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 6:19 AM > To: [EMAIL PROTECTED] > Subject: Re: Why using use strict; > > > Octavian Rasnita wrote at Tue, 04 Jun 2002 08:03:21 +0200: > > > Hi all,

Re: Why using use strict;

2002-06-05 Thread Janek Schleicher
Octavian Rasnita wrote at Tue, 04 Jun 2002 08:03:21 +0200: > Hi all, > > I know why I should use "use strict;" but what happen if I use "use strict;" then >if the code is > OK, I delete this line? > use strict has (e.g.) the benefit for checking fo

RE: Why using use strict;

2002-06-05 Thread Joel Hughes
why would you want to do that Octavian? "use strict" is a sanity safety net. What your saying is like "I know why I should use safety belt whilst driving my car but what if I took it off?" - of course you can do it but beware of the consequences. joel -Original Message

Why using use strict;

2002-06-04 Thread Octavian Rasnita
Hi all, I know why I should use "use strict;" but what happen if I use "use strict;" then if the code is OK, I delete this line? Shouldn't it work the same without this line if the code has no problems? Thanks. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-ma

Re: use strict

2001-12-17 Thread Curtis Poe
--- Carl Franks <[EMAIL PROTECTED]> wrote: > I have a seperate config file in which I define all of my variables. > (because I'm making a program using several scripts with many common vars) > > I was under the impression that by initiating the variable (even in a >

use strict

2001-12-17 Thread Carl Franks
I have a seperate config file in which I define all of my variables. (because I'm making a program using several scripts with many common vars) I was under the impression that by initiating the variable (even in a seperate file) 'use strict' would be happy. However, when I run th

Re: use strict errors?

2001-06-28 Thread Adam Carson
too long... i'm confused with this...script works >fine but > returns errors with use strict... > could someone plz explain what i'm doing wrong? > tx 'use strict' will, amongst other things, force you to predeclare all variables (well, almost all) that you us

Re: use strict errors?

2001-06-28 Thread Curtis Poe
--- "RDWest Sr." <[EMAIL PROTECTED]> wrote: > hi yall, > maybe i been up too long... i'm confused with this...script works >fine but > returns errors with use strict... > could someone plz explain what i'm doing wrong? > tx 'use

use strict errors?

2001-06-28 Thread RDWest Sr.
hi yall, maybe i been up too long... i'm confused with this...script works fine but returns errors with use strict... could someone plz explain what i'm doing wrong? tx #!perl use strict; print "Content-type