Two different installations of Perl perhaps? Try comparing the outputs of the following with the shebang (#!) line at the top of the script.
$ which cpanm $ which perl $ perl -le 'print $^X'
In reply to Re: Device::SerialPort Brain Problems
by haukex
in thread Device::SerialPort Brain Problems
by wm1ke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |