|
|
| more useful options | |
| PerlMonks |
delete on tied variablesby cmac (Monk) |
| on Jan 12, 2009 at 03:33 UTC ( #735595=perlquestion: print w/ replies, xml ) | Need Help?? |
|
cmac has asked for the
wisdom of the Perl Monks concerning the following question:
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
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||