in reply to Hmmm... HoA help ...

(Just a small suggestion, if you can remove those line numbers first before you post your code, it will greatly benefit fellow monks, who might help you test :-) I tested with,
hash_tapes(["t1", "pr1", "l1", "po1"], ["t2", "pr2", "l2", "po2"], ["t3", "pr3", "l3", "po3"], ["t1", "pr2", "l2", "po2"]);
and it seems fine for this case. It deleted t2, t3, but left t1 there. How did you test it?

Replies are listed 'Best First'.
Re: Re: Hmmm... HoA help ...
by talwyn (Monk) on Nov 29, 2002 at 06:49 UTC

    %Tape_Cat should be hash whose keys are the tape labels Each key contains an array of refs. Each ref in this array is anarray ref containing Protection, Location, and Pool

    Looks like: %Tape_Cat->Label->Record1 { Protection, Location, Pool } |->Record2 { Protection, Location, Pool } . . |->Recordn {Protection, Location, Pool } I want to determine the value n and elminate those tapelabels with onl +y one record.

    I think your suggestion will place only one record , whichever is found last in %Tape_Cat. Am I missing the point?