splice( my @Records );
I think you have used this personal idiom before, and I even seem to remember a discussion about it in some other thread.
This is very puzzling to me. Can you say or provide a link back to a previous statement of why you prefer this particular idiom?
I know that some authorities advocate the occasional use of a statement like
my $scalar = undef;
or
my @array = ();
as a way of obviating the need for a comment to the effect
# this thing really needs to be (undefined|empty) for when it is used later in the script
(of course, by default scalars are undefined and arrays empty upon creation). However, the use of splice in this context, if that is the intent, seems likely to produce only a blank stare in a future reader/maintainer (who may even be yourself!), followed by a scramble to the docs to find the effect on an array of splice when used with no other parameters.
Yours in confoositude?
In reply to Re: element of an array of arrays
by AnomalousMonk
in thread element of an array of arrays
by JockoHelios
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |