in reply to pointer memory and dynamic memory

Have a look at An illustrated guide to perl internals by Gisle Aas, and perlguts

-enlil