Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Destroying tied serial port

by Marais (Novice)
on Dec 23, 2012 at 22:00 UTC ( #1010132=note: print w/replies, xml ) Need Help??


in reply to Destroying tied serial port

It's embarrassing how often the simple act of documenting your problem leads you to find the cause. In this case, I had a variable ($handle) defined both locally and globally - an old, old story. Fixing that did get me past the problem I described above, not surprisingly. Now of course there is another problem, but I'll consider that one myself a little more before asking for help. --- Marais

Replies are listed 'Best First'.
Re^2: Destroying tied serial port
by roboticus (Chancellor) on Dec 24, 2012 at 00:03 UTC

    Marais:

    It's not embarrassing at all. In fact it's an old and quite valuable debugging technique. That's why I frequently create a simple 'test case' program to try to illustrate a bug. The act often helps you understand what's going on, and can point out interactions with other parts of your program.

    It's also the reason that we frequently ask for a simple program that illustrates the problem. The act of doing that can help you answer the question yourself, which is a faster way to learn how to code.

    (It's also the reason I like Test Driven Development (TDD), as it's a similar (in some ways) process.)

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010132]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-11-17 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (275 votes). Check out past polls.

    Notices?