|
|
| go ahead... be a heretic | |
| PerlMonks |
deleting from the memoryby programmer.perl (Sexton) |
| on Jul 23, 2012 at 23:23 UTC ( #983254=perlquestion: print w/ replies, xml ) | Need Help?? |
|
programmer.perl has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, I'm having trouble with a deleting the element of an array, here I'm attaching the output (error in the last line, if you see there are two commas), it seems that element is not being deleted, instead it's undefined (func. undef). How to delete the element (from memory)? I tried to look into perldoc but I couldn't find another functions except 'delete' and 'undef'. Here in perldoc about 'delete' : WARNING: Calling delete on array values is deprecated and likely to be removed in a future version of Perl. Output of program:
Code of program and module:
The code of a program
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||