in reply to Memory allocation functions

There is! You can get memory as a scalar, an array, or a hash. Like so:
my $scalar; my @array; my %hash;
That memory is dynamic and managed by perl itself, so you don't need to remember to free it (usually) and you don't need to remember how much memory to allocate. Great isn't it!

Replies are listed 'Best First'.
Re^2: Memory allocation functions
by ph0enix (Friar) on Feb 02, 2009 at 15:54 UTC
    Yes, for sure. But please keep in mind that in case of complex data structures some circular references are not detected properly. In this case memory will still remain allocated.