Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm writing a module that implements tied interfaces. The description of the tied interface describes the DELETE function for both arrays and hashes as applying to only one entry/element.
The description of the delete function says that it can be used on a "hash element, array element, hash slice, or array slice". Q1: What is a hash slice and how is one written in Perl? Q2: if a delete function in a Perl program specifies a slice, will the interpreter break it up into individual calls to DELETE? Q3: if not, what are the operands to DELETE that express a slice, for both an array and a hash? If there are other pages that cover this subject, please tell me. Thanks be to Perl Monks, cmac www.animalhead.com In reply to delete on tied variables by cmac
|
|