Re: Problem with Arrays

2008-06-23 Thread luke devon
Thank you Mimi, now my perl code is working. It was a great help . I was lost in perl. Thanks again. - Original Message From: Mimi Cafe <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Monday, June 23, 2008 18:19:45 Subject: Problem with Arrays Perl is warning you that your var

Re: Problem with Arrays

2008-06-23 Thread Gunnar Hjalmarsson
luke devon wrote: I tried to capture some data in STDIN and wanted compare with a Queried data form a database. When i run the script , there is some errors. Scalar value @array[2] better written as $array[2] at hell.pl line 22. Global symbol "@array" requires explicit package name at h

Re: Problem with Arrays

2008-06-23 Thread Brad Baxter
On Jun 23, 8:36 am, [EMAIL PROTECTED] (Luke Devon) wrote: > Scalar value @array[2] better written as $array[2] at hell.pl line 22. > Scalar value @array[1] better written as $array[1] at hell.pl line 31. ... > Possible unintended interpolation of @array in string at hell.pl line 38. ... > Global sy

Problem with Arrays

2008-06-23 Thread Mimi Cafe
Perl is warning you that your variables have not been declared. You need to declare the @array and $temp as my @array, my $temp. Also, the second element of @array is $array[1] not @array[1]. Mimi On 23/06/2008, luke devon <[EMAIL PROTECTED]> wrote: > > Hi , > > I tried to capture some data in S

Problem with Arrays

2008-06-23 Thread luke devon
Hi , I tried to capture some data in STDIN and wanted compare with a Queried data form a database. When i run the script , there is some errors. Scalar value @array[2] better written as $array[2] at hell.pl line 22. Scalar value @array[1] better written as $array[1] at hell.pl line 31. Scalar v