a 'perldoc strict' and see the section about "strict vars".
-Original Message-
From: Gerald Wheeler [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 12:15 PM
To: beginners@perl.org
Subject: Use Strict Question
Need a little help... trying to this thing rig
In short, you need to declare your variables in your script.
my $OrderFile;
my $referer;
Instead of just "defining" your variable (example below)
$referer = "something"; # TAINTED DATA
On 1/12/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote:
>
> Need a little help... trying to this thing right.
Need a little help... trying to this thing right..
with all these errors one might assume it's simply - forgot to do
something...
any help in the solution to these errors is greatly appreciated
"use strict;" is used..
# perl -c theta.pl >
Variable "$error" is not imp
On Jan 13, Keith Nasman said:
>@a = qw/this is the text/;
>$a = "three";
>print "The third word is ${a}[2]\n";
>print "The third word is $a[2]\n";
>
>produce this:
>
>The third word is three[2]
>The third word is the
The reason "three" is printed is because "${a}[2]" is another way of
writing $a
Why does this code:
#!/usr/bin/perl -w
#use strict;
@a = qw/this is the text/;
$a = "three";
print "The third word is ${a}[2]\n";
print "The third word is $a[2]\n";
produce this:
The third word is three[2]
The third word is the
and this code:
#!/usr/bin/perl -w
use strict;
my @a = qw/this