[Israel.pm] unshift vs push&reverse
Berler Chanan
chananb at centerity.com
Thu Mar 26 02:13:30 PDT 2009
Hi All,
I have a set of SQL needed to be run using timestamp field.
I have created an array and needs to push / unshift the SQL statements into
it for future execution
(different conditions builds different set of SQL statements).
I am using unshift to push the values into an array, so I will have the
correct order, but I wonder
if it is best to use push and reverse functions instead.
Can anyone direct me to performance of unshift vs. push&reverse ? or
push&pop ?
Thanks
Chanan
More information about the Perl
mailing list