Andy Dougherty writes: > On Thu, 18 Sep 2003, Gregor N. Purdy wrote: > > > Andy -- > > > > I didn't see anything wrong in the code, but I added some parens. > > > > Let me know if you still have trouble... > > Yup, still the same problem. Here's the line in question: > > > > Can't modify subroutine entry in scalar assignment at lib/Jako/Symbol.pm > > > line 83, near "'arg';" > > sub is_variable { my $self = shift; return ($self->kind eq 'var') or > ($self->kind = 'arg'); }
Uhh, that last statement is bad. Unless C<return> is somehow special, you're effectively executing: (return $self eq 'var') or ($self->kind = 'arg') Which I imagine is not the intent, as return doesn't, well, return. Luke > It's the ($self->kind = 'arg') assignment that's illegal under 5.00503. > > -- > Andy Dougherty [EMAIL PROTECTED]