in reply to How to send long sting Device::SerialPort
Looking at Device::SerialPort, I see it makes a promise to handle I/O in a stream-like manner for the tied filehandles. The write method is just POSIX::write underneath, so the same concerns apply as with syswrite ie. loop and check the return value.
With a tied handle, a simple print FH $string; ought to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to send long sting Device::SerialPort
by rkrasowski (Sexton) on Dec 08, 2013 at 13:36 UTC | |
by kschwab (Vicar) on Dec 08, 2013 at 14:25 UTC | |
by rkrasowski (Sexton) on Dec 08, 2013 at 16:51 UTC | |
by oiskuu (Hermit) on Dec 09, 2013 at 11:32 UTC |