Subject: | Open statement needs parenthesis. |
Date: | Mon, 18 Oct 2010 09:35:43 -0400 |
To: | bug-GPIB [...] rt.cpan.org |
From: | David Smith <davidhsmith255 [...] gmail.com> |
On line 231 of GPIB.pm it says:
open FD, "<$config_fname" || return;
but should say:
open (FD, "<$config_fname") || return;
Without the parenthesis GPIB dies when the configuration file doesn't
exist. I often use this module, including small executable (.exe)
applications compiled with Par::Packer and don't use the configuration file
at all. This error causes the executable to fail.
David