Skip Menu |

This queue is for tickets about the Queue-Base CPAN distribution.

Report information
The Basics
Id: 69005
Status: resolved
Worked: 45 min
Priority: 0/
Queue: Queue-Base

People
Owner: RUSSOZ [...] cpan.org
Requestors: RUSSOZ [...] cpan.org
Cc: ron [...] savage.net.au
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.201
Fixed in: (no value)



CC: ron [...] savage.net.au
  Hi Alexei

I'm using Queue::Base, and it does just what I want.

However, I have a requirement to get a copy of the elements in the
queue, repeatedly.

At the moment I call @all = $q -> remove_all() and then $a -> add(@all),
but that is very crude.

Could you please add a copy() method.

TIA.

--
Ron Savage
http://savage.net.au/
Subject: Method copy_elem() added.
 Method copy_elem() added, POD updated. It performs a shallow copy only.