On Dec 15, 2003, at 12:23 AM, Ron Willmert wrote:
drieux wrote:
[..]

do you mean that you are using
<http://search.cpan.org/~bbirth/Win32-SerialPort-0.19/lib/Win32/ SerialPort.pm>
[..]

Thanks!

you are more than welcome. You will of course forgive the brief 'evil Homer Simpson moment'

Yes, that's the module I'm using. I don't know why
I was thinking I didn't need the config file I if
I set the port settings in the script.

<evilHomerSimpsonMoment> As I explained to one of my young coders who wanted to learn java, "if she does not code in java, you do not need to talk to her..." Ultimately we would lose him to her, since she had other skills than java.... This could be a vector of mentalMomenting...

        Always Remember which head you are thinking with,
                especially when coding....

</evilHomerSimpsonMoment>
8-)

After saving a config file I was able to get the script
to run without errors (with strict uncommented). It runs
quickly and finishes w/o saving anything in the log file
but I think that's because at the moment it runs, there
isn't anything coming in COM2. I didn't get a chance to
play with it too much though.

p0: what I know about the Win32::SerialPort stuff I learned from reading the POD, not from actually coding it. Hence I could look at your code and ask questions based upon merely the comparison with what it said, and what you were doing.

A part of why we push 'the POD', as well 'use strict' and 'use warnings'
as a core part of the issue.

p1: Given the level of complexity of what the Module can
do, you really might want to work out IF your original
plan wasn't the better solution. Since it would allow you
to have better control over that 'configuration file'
inside your perl code - but WOULD require that you get
away from the simpler tie() approach and with it the
simplistic
        print LOG $_ while(<BIFF>);

since you will ultimately need a real 'polling loop'
that will check to see if the Port is Ready, and that
one has read as much stuff as it is willing to give you.


ciao drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to