in reply to Re^3: Perl thread issue
in thread Perl thread issue

That does not mean that queue enqueue and dequeue are not working on same queue due to which second program is not working

There is only one program, with three threads (main and two workers, $thr1/$thr2 ), and they all share the same exact one Thread::Queue

See http://perldoc.perl.org/perlthrtut.html#Queues%3a-Passing-Data-Around