Re: Statement failure inside a loop

2015-06-18 Thread Илья Рассадин
I think, even better if initialize magic numbers and symbols use constant NEWLINE_SYMBOL => chr(10); use constant SOME_MEANINGFULL_NAME => ; чт, 18 июня 2015 г. в 16:54, Shlomi Fish : > Hi Marco, > > see below for my response. > On Thu, 18 Jun 2015 15:17:27 +0200 > Marco wrote: > > > Hello

Re: Statement failure inside a loop

2015-06-18 Thread Shlomi Fish
Hi Marco, see below for my response. On Thu, 18 Jun 2015 15:17:27 +0200 Marco wrote: > Hello. > > I need some help in understanding why the first > > my ($Count,$Saw)=$self->{_Portobj}->read(1); > > is executed without any problem , however the second identical statement > inside the whil

Statement failure inside a loop

2015-06-18 Thread Marco
Hello. I need some help in understanding why the first my ($Count,$Saw)=$self->{_Portobj}->read(1); is executed without any problem , however the second identical statement inside the while loop fails with the error Can't call method "read" on an undefined value at wt800.pm line 121 Th