Re: serial communication over usb on linux

2017-01-02 Thread H.Merijn Brand
On Tue, 03 Jan 2017 01:11:06 +0100, Erik Colson wrote: > Elizabeth Mattijsen writes: > > > How about starting with Inline::Perl5 and “use > > Device::SerialPort:from” ? > > I considered that solution, but had some fears.. So I figured I might be > overlooking other (maybe bether) options ?

Re: serial communication over usb on linux

2017-01-02 Thread Brandon Allbery
On Mon, Jan 2, 2017 at 11:11 PM, ToddAndMargo wrote: > When using "Inline", do you have to convert arrays to > references first? > Can you provide a specific example? My basic rule is "if you are calling something p5ish from p6, if it expects an arrayref you give it an array (which will be pass

Re: serial communication over usb on linux

2017-01-02 Thread ToddAndMargo
On 01/02/2017 03:20 PM, Elizabeth Mattijsen wrote: Inline::Perl5 Hi Liz, Just a question on "Inline". I Perl 5, when passing arrays to a subroutine, I have to convert them to references (unless I only pass a single array and nothing else). When using "Inline", do you have to convert arrays to

Re: serial communication over usb on linux

2017-01-02 Thread Erik Colson
Elizabeth Mattijsen writes: > How about starting with Inline::Perl5 and “use > Device::SerialPort:from” ? I considered that solution, but had some fears.. So I figured I might be overlooking other (maybe bether) options ? About Device::SerialPort The module uses XS. Is that supported with Inl

Re: serial communication over usb on linux

2017-01-02 Thread Elizabeth Mattijsen
> On 2 Jan 2017, at 23:49, Erik Colson wrote: > I'm considering to write a small IoT script in perl6. For this I need > serial communication as Perl5 has Device::SerialPort. As this module > has not (yet) been ported to perl6, I suppose I can achieve this with > Inline-ing. But of course, Perl6

serial communication over usb on linux

2017-01-02 Thread Erik Colson
Hi, I'm considering to write a small IoT script in perl6. For this I need serial communication as Perl5 has Device::SerialPort. As this module has not (yet) been ported to perl6, I suppose I can achieve this with Inline-ing. But of course, Perl6 can inline a lot of languages. So: Which library