Subject: | Minor point re api-demo.pl example |
Date: | Mon, 21 Apr 2014 16:07:55 -0600 |
To: | Jason McManus via RT <bug-Finance-InteractiveBrokers-SWIG [...] rt.cpan.org> |
From: | Glenn Golden <gdg [...] zplane.com> |
--
In examples/api-demo.pl of F::IB::SWIG 0.11, the closure at the end should
probably be inside the BEGIN block, otherwise the initialization performed
by "my $id = 0" will never be executed. As written, the first returned id
will always be 1, regardless of the RHS of the initialization "my" statement.
Small point, but it caught me, so perhaps someone else may stumble on it too.