Le 06/03/11 16:37, Ludovic Rousseau a écrit :
Le 16/02/11 21:24, [email protected] a écrit :
Package: libpcsc-perl
Version: 1.4.9-1
Severity: normal
Original test.pl (/usr/share/doc/libpcsc-perl/examples/test.pl.gz)
works, but
if I insert the following line
print "BUG:current_state: " . $readers_states[0]{'current_state'} . "\n";
between rows 87 and 88 (or elsewhere before the second
GetStatusChange), I get
the following error:
current_state is not valid (must be numeric) at PCSC.xs line 1143
at /usr/lib/perl5/Chipcard/PCSC.pm line 147.
The same thing happens if I print 'event_state' before the second
GetStatusChange: I get the following error
event_state is not valid (must be numeric) at PCSC.xs line 1163
at /usr/lib/perl5/Chipcard/PCSC.pm line 147.
This behaviour is confirmed in general if I print 'current_state' or
'event_state' before the second call of GetStatusChange
I can reproduce the bug.
I will look into it.
I have the bug if I use:
print "$event_state";
but not if I use:
print $event_state;
I think Perl is doing a something to the variable when trying to convert
it in a string.
This is beyond my (quiet low these days) Perl expertise :-(
I am open to a patch :-)
Bye
--
Dr. Ludovic Rousseau
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]