Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Perl
Perl.Perl

Method Perl.Perl()->array_size_limit()


Method array_size_limit

int array_size_limit()
int array_size_limit(int limit)

Description

Get (and optionally set) the array size limit for this interpreter instance. Without arguments, the current limit is returned. With an integer argument, the limit is set to that value, and the same value is returned.

The array size limit is mainly a way of ensuring that there isn't a sudden explosion in memory usage and data conversion time in this embedding interface. There is no particular limit other than available memory in Perl itself.

Note

The default array size limit is 500 elements, but this may change in future releases of Pike.

The maximum array size limit is the highest number representable as a non-bignum integer (which is typically 2147483647 on a traditional 32-bit architecture).

Parameter limit

The new array size limit.