Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Com and Serial Ports

by nofernandes (Beadle)
on Sep 29, 2003 at 10:06 UTC ( [id://294919]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Com and Serial Ports
in thread Com and Serial Ports

Thank you for your reply and for your help!

Your snippet gives me the following error binmode() on unopened filehandle 3 at nelo.pl line 16., do you have a clue why?

Thank you!!

Nuno

Replies are listed 'Best First'.
Re: Re: Re: Re: Com and Serial Ports
by BrowserUk (Patriarch) on Sep 29, 2003 at 15:31 UTC

    Sorry, but I don't. If you have called $obj = Device::SerialPort->new(...), and not received a message telling you "can't open device: ...", then the port should be open and the handle obj->{FD} should be valid.

    If the port failed to open during the new() call, then you would have received a null return from new() and your attempt to use $obj->{FD} in the call to binmode would have resulted in a "Use of uninitialized value in ref-to-glob cast at ..." message.

    Without seeing the code you used, it is impossible to try and diagnose this further.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-18 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found