develooper Front page | perl.beginners | Postings from February 2002

Re: use strict

Thread Previous | Thread Next
February 5, 2002 07:20
Re: use strict
Message ID:
On Tue, Feb 05, 2002 at 09:18:17AM -0800, Octavian wrote:
> Hello all,
> I am a new member. please tell me what is used for the following line in a
> script:
> use strict;
> I saw that if I use it, this make sometimes my scripts to have errors and
> without it, they works.
---end quoted text---

use strict means that strict programming rules are applied to your code.
One example is you need to declare variables using 'my' as in:

my $a="value";

if you are using Unix, try this on the command-line, it should report a
description of what strict does.

perldoc strict
 Frank Booth - Consultant
Parasol Solutions Limited.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About