Hi Everyone!
I have here a queue:
my $qTool = Thread::Queue->new();
I want to show all the elements that the queue contains.
my $qItem = $qTool->peek();
The code above returns only either the head of the queue or an element at a specified index.
Is there a way for me to show all the elements instead of only one?
For example, if the queue contains ,
"->peek()" only returns 'item1'.
"->peek(1)" returns 'item2'.
Any help would be appreciated.
Thanks.