in reply to pointer memory and dynamic memory

You can learn more about the Perl internals reading Advanced Perl Programming [Chapter 20]
or http://gisle.aas.no/perl/illguts/

UPDATE: a link to APP removed due to O'Reilly's policy