in reply to Unable to use Device::SerialPort on Mac OS X

How many perl do you have installed? With or without threading (perl -V)? Try uninstalling Device::SerialPort then reinstalling. Make sure you use the same perl for run your program and for install Device::SerialPort.

Replies are listed 'Best First'.
Re^2: Unable to use Device::SerialPort on Mac OS X
by Metphoto (Initiate) on Aug 16, 2009 at 19:38 UTC
    Hi

    On your advice I looked at the versions of Perl on my Mac.

    If I do a 'which perl' I get /opt/local/bin/perl.

    However I also found another version of Perl at /usr/bin/perl.

    So I found the following:

    This does not work

    /usr/bin/perl < app.pl

    This works!

    /opt/local/bin/perl < app.pl

    My Mac is rather old and I have messed around with it on numerous occasions. Both versions appear to be v5.8.8.

    So I cannot explain what is broken, but at least my little app works now.

    Mark