RE: Use Strict Question

2006-01-12 Thread Timothy Johnson
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

Re: Use Strict Question

2006-01-12 Thread Omega -1911
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.

Use Strict Question

2006-01-12 Thread Gerald Wheeler
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

Re: Arrays and use strict question

2002-01-13 Thread Jeff 'japhy' Pinyan
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

Arrays and use strict question

2002-01-13 Thread Keith Nasman
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