If the null element is the last in the array
then you can pop @array
Or as your example states, at the beginning of the array, shift @array
However for anything trickier , like removing the null at $array[45] , you want
to investigate splice
In reply to Re: Removal of "NULL" element in an array?
by submersible_toaster
in thread Removal of "NULL" element in an array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |