Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: strange behaviour with Device::SerialPort

by fisher (Priest)
on Nov 25, 2010 at 18:42 UTC ( [id://873704]=note: print w/replies, xml ) Need Help??


in reply to Re: strange behaviour with Device::SerialPort
in thread strange behaviour with Device::SerialPort

No-no-no. Of course I created this object. And suddenly I realized I have no logfile. So I started to cut my script to minimal reproducible size. And so I came to this minimal script you see here in the post.
My actual question was not about how to read from a serial port. I just wondering why its not writing to file when I use mentioned perl module.
  • Comment on Re^2: strange behaviour with Device::SerialPort

Replies are listed 'Best First'.
Re^3: strange behaviour with Device::SerialPort
by Anonymous Monk on Nov 25, 2010 at 18:59 UTC
    Ah, sorry, that wasn't clear to me from your original post.

    Maybe perl doesn't get around to flushing the file contents of L, because it prematurely quits for some reason related to Device::SerialPort (in some cleanup routine of the module?). Just a guess, though.

    I would try to explicitly close the file. Or use strace to figure out what is or isn't happening under the hood.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://873704]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found