Subject: | unaccessed read-only variables are undef in select calls |
When a read-only variable is accessed it has an undef value as a
parameter for select. This causes select to sleep forever.
Example Code:
use Readonly;
Readonly my $SLEEP_TIME => "0.25";
select (undef, undef, undef, $SLEEP_TIME);
This is seen in the Readonly version 1.03
[root@keystone ~]# uname -a
Linux keystone 2.6.18-238.12.1.el5prerel4.2.6_71.1.0 #1 SMP Wed Jul 6
16:15:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Using CentOs 5.6