From: Jim C. <jc...@di...> - 2004-01-14 21:22:44
|
Clarissa Cook wrote: >Hi, > >--- Jim Cromie <jc...@di...> wrote: > > >>Clarissa Cook wrote: >> >> >> >>>Well, that's how I read Pty.pm ... I mean "if (defined TIOCSCTTY)" >>>isn't even advanced Perl. >>> >>> >>> >>> >>just a wag - what happens if you hack it, and strip out 'defined' ? >> >> > >Ooo! Very good point. So, replacing with: >if (TIOCSCTTY) { >} elsif (TCSETCTTY) { >} >(note I had to delete the defined on the TCSETCTTY as well), then the >warning about TIOCSCTTY and TCSETCTTY go away (but are replaced with >"Useless use of a constant in void context at ...") > > Having looked at the code, I take it that ... is elsewhere, ie your user code. >Progress! (of sorts). > > good. now you have to decide what its telling you. Keep in mind that it was a WAG (wild ass guess), and was not intended to imply certainty about 'which way is west'. Id suggest focussing on what WIERD about this. In my limited use of Expect, Ive not encountered problems, except basic user ones. Roland is *highly* qualified in the edge cases of this package. ;-) >Thanks, >Clarissa > > > |