Re: Help please. What is missing?

2003-09-04 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Can someone please explain why this > > while (1) { >my $item = ; >chomp $item; >last unless $item; You should use a different test then true or false for $item last unless length $item; >$inventory{1c

RE: Help please. What is missing?

2003-09-04 Thread Charles K. Clarkson
Madison Daily <[EMAIL PROTECTED]> wrote: : Can someone please explain why this : : while (1) { :my $item = ; :chomp $item; :last unless $item; :$inventory{1c $item}++; : } : : : Gets Bare word found where operator expected : Syntax error line 13

Re: Help please. What is missing?

2003-09-04 Thread wiggins
On Thu, 4 Sep 2003 18:46:48 +0200 (CEST), "Paul Johnson" <[EMAIL PROTECTED]> wrote: > > K Old said: > > On Thu, 2003-09-04 at 12:24, [EMAIL PROTECTED] wrote: > >> Can someone please explain why this > >> > >> while (1) { > >>my $item

Re: Help please. What is missing?

2003-09-04 Thread Paul Johnson
K Old said: > On Thu, 2003-09-04 at 12:24, [EMAIL PROTECTED] wrote: >> Can someone please explain why this >> >> while (1) { >>my $item = ; >>chomp $item; >>last unless $item; >>$inventory{1c $item}++; >> } > > You probably wanted: > > $inventory{'1

Re: Help please. What is missing?

2003-09-04 Thread K Old
On Thu, 2003-09-04 at 12:24, [EMAIL PROTECTED] wrote: > Can someone please explain why this > > while (1) { >my $item = ; >chomp $item; >last unless $item; >$inventory{1c $item}++; > } You probably wanted: $inventory{'1c'}++; or $inventory{$item}+

Help please. What is missing?

2003-09-04 Thread mdaily
Can someone please explain why this while (1) { my $item = ; chomp $item; last unless $item; $inventory{1c $item}++; } Gets Bare word found where operator expected Syntax error line 13 near 1c thanks Madison Daily Weldon, Williams & Lick, Inc. (479