Somu wrote:
Hi list,

Hello,

Recently i've been learning a bit of C programming.

Congratulations.

I used data
structures and then linked lists .. Does perl have this concept?

No. C is a low level language and uses pointers to create linked lists and Perl does not have pointers. You could simulate linked lists in Perl and the book _Mastering Algorithms with Perl_[1] describes how to do this.

Linked list helps in good memory management. Does perl automates
memory management for us?

Yes.

Also, all the C variables are bound to be
declared at the top, so that the program can allot memory for them.

This is not the case for the current C standard.

But this is not the case with perl where variables come and go with
scope. What if not enough memory is available?

Then perl will die and tell you that.   :-)



[1]  http://www.oreilly.com/catalog/maperl/


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to